Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no way to get an achievement completed percentage. #151

Open
haikami opened this issue Jan 27, 2015 · 1 comment
Open

There is no way to get an achievement completed percentage. #151

haikami opened this issue Jan 27, 2015 · 1 comment

Comments

@haikami
Copy link

haikami commented Jan 27, 2015

I am supposing that this is actually possible..
I tried with the gamecenter manager, but there's no method to do such thing,
I also tried doing:

        GKAchievement achievement = new GKAchievement(achievementId);
        percentage+=achievement.getPercentComplete();

But this method always returns 0.

@dejvid
Copy link
Contributor

dejvid commented Mar 13, 2015

I think you have to get achievements with GameCenterManager in GameCenterListener callback method achievementsLoadCompleted. You are just creating new achievement. Your instance of achievement does'n know about state stored in game center.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants