I’m developing a game using cocos2d.
What is the best location to authenticate user in Game Center?
I’m using GameCenterManager provided by apple (GKTapper).
is it ok to call authenticateLocalUser during applicationDidFinishLaunching in AppDelegate or it is to heavy for initialization process? I know that authentication is made in background, but could it affect startup performance somehow?
Any help is appreciated.
You kind of answered your own question. I think that most people who know what they are doing put it in applicationDidFinishLaunching, because if they have it in the init, it will result in a slightly longer loading period. Also, by putting it in the init, you may find that when the local player has been authenticated, it shall cause lag which you do not want in the middle of the menu screen.