- Home /
iOS Game Center Achievements Not Working
Alright so I'm implementing a Leaderboard and Achievement System in my game using Unity's Social Api, and so far the Leaderboard is working and I am able to send my scores and view them in the Game Center in Sandbox Mode, but the Achievement System doesn't want to work. And yes I am calling the ShowDefaultAchievementCompletionBanner in my start function.
I'm not sure if its the way I'm writing the achievement Id is wrong or that I'm call the achievement function incorrectly. Bellow is an example of how I wrote my code:
using UnityEngine;
using System.Collections;
using UnityEngine.SocialPlatforms;
using UnityEngine.SocialPlatforms.GameCenter;
private string iosFinishWorld01AchievementID = "com.company.name.a_world01";
void Start()
{
GameCenter.GameCenterPlatform.ShowDefaultAchievementCompletionBanner(true);
LogIn ();
}
void LogIn ()
{
Social.localUser.Authenticate((bool success) =>
{
if (success)
Debug.Log("You've successfully logged in");
else
Debug.Log("Login failed for some reason");
});
}
void UnlockWorld01Achievement ()
{
Social.ReportProgress(iosFinishWorld01AchievementID, 100.0f, (bool success) =>
{
if (success)
Debug.Log("You've successfully Unlocked Achievement");
else
Debug.Log("failed to get Achievement");
});
}
Answer by Hipno · Jul 24, 2015 at 07:40 AM
Same problem here, Opened a thread about it. http://forum.unity3d.com/threads/ios-achievements-not-unlocking.341169/
No luck so far. People reported success using GKAchievementReporter, but didn't work for me.
Yes I couldn't get to fix it and ended up using the G$$anonymous$$AchievementReporter, after adding that I was able to unlock achievements. :)
Your answer
Follow this Question
Related Questions
Game Center login issue 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Gamecenter achievement already reported 1 Answer
How do I detect if the player returns from the GameCenter UI? 0 Answers