A question about Game Center Leaderboards...
Is it necessary to use the "login" attribute when incorporating game center leaderboards in your app?
Right now im testing with an ad hoc build and a sandbox user account and what I've noticed is that when I call the "show leaderboard" attribute, the game center login window pops up anyway.
Just wondering what the flowchart here looks like...
Thanks
Best Answers
-
pHghost London, UKPosts: 2,342
Well, login can be included in the very beginning when the game loads.
You might have noticed in games, when you run them it says you have been logged into GameCenter. That makes further actions, like saving scores to the leaderboard possible and also things like show leaderboard faster, since you are already logged in.
-
pHghost London, UKPosts: 2,342
It won't show them a login window, just log them in with your game, automatically. Basically, even if you stay logged in, I think GameCenter 'goes to sleep' to save battery and such after some period of non-use. This wakes it up again.
Answers
@marcgreiff
You'll only need it when you want auto login on game start (or on any scene you want). You usually do not put it in any rule.
lets say im already logged in to gamecenter. If i call the login attribute at the begining of my game would that show the login widow again? or would it cancel showing the widow bc im already logged in?
awesome, thanks!
@marcgreiff
No it won't show anymore if you're logged in already. If you want to log off, you go to GameCenter app and log off there.