Post

Replies

Boosts

Views

Activity

Reply to ShowsCompletionBanner for GKAchievement is not shown
same issue on macOS platform,i use unity platform for build here my code : public class Achievement { public AchievementType Type; public int Value; public string ID; public Achievement(AchievementType type, int value, string id) { Type = type; Value = value; ID = id; } public async void Unlock() { var achievements = await GKAchievement.LoadAchievements(); var achievement = achievements.FirstOrDefault(a => a.Identifier == ID); achievement ??= GKAchievement.Init(ID); Debug.Log("Achievement will be unlocked" + ID); Debug.Log("Last Reported Date " + achievement.LastReportedDate); if (!achievement.IsCompleted) { Debug.Log("Achievement Unlocked" + ID); achievement.PercentComplete = 100; achievement.ShowCompletionBanner = true; GKAchievement[] achieves = {achievement}; await GKAchievement.Report(achieves); Debug.Log("Achievement Reported" + ID); } else { Debug.Log("Achievement Already Unlocked" + ID); } } }
Topic: Graphics & Games SubTopic: GameKit Tags:
May ’24
Reply to Unable to List Voice Folder - AVSpeechSynthesizer
anyone solved problem?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’24
Reply to ShowsCompletionBanner for GKAchievement is not shown
same issue on macOS platform,i use unity platform for build here my code : public class Achievement { public AchievementType Type; public int Value; public string ID; public Achievement(AchievementType type, int value, string id) { Type = type; Value = value; ID = id; } public async void Unlock() { var achievements = await GKAchievement.LoadAchievements(); var achievement = achievements.FirstOrDefault(a => a.Identifier == ID); achievement ??= GKAchievement.Init(ID); Debug.Log("Achievement will be unlocked" + ID); Debug.Log("Last Reported Date " + achievement.LastReportedDate); if (!achievement.IsCompleted) { Debug.Log("Achievement Unlocked" + ID); achievement.PercentComplete = 100; achievement.ShowCompletionBanner = true; GKAchievement[] achieves = {achievement}; await GKAchievement.Report(achieves); Debug.Log("Achievement Reported" + ID); } else { Debug.Log("Achievement Already Unlocked" + ID); } } }
Topic: Graphics & Games SubTopic: GameKit Tags:
Replies
Boosts
Views
Activity
May ’24
Reply to Apple GameKit EntryPointNotFoundException
oh I perceive that it works on iOS device,
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to GKLocalPlayer.Local.FetchItems() Task Error on Unity
hello, any solutions?
Topic: Graphics & Games SubTopic: GameKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to Expected Payment Date
issue fixed,it shows 2 December as payment date!
Replies
Boosts
Views
Activity
Nov ’21
Reply to Expected Payment Date
same for me,just waiting for new updates..
Replies
Boosts
Views
Activity
Nov ’21