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

  • pHghostpHghost London, UKPosts: 2,342
    Accepted Answer

    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.

  • pHghostpHghost London, UKPosts: 2,342
    Accepted Answer

    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

  • yattamoveyattamove Member Posts: 236

    @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.

  • marc_greiffmarc_greiff Member, PRO Posts: 250

    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?

  • marc_greiffmarc_greiff Member, PRO Posts: 250

    awesome, thanks!

  • yattamoveyattamove Member Posts: 236

    @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.

Sign In or Register to comment.