My app seems to get logged out from Game Center after a certain time?
gamesmold
Member, PRO Posts: 279
Hi there,
first of all - sorry in advance for a double post, but I fear this question is better located in this thread than where I originally placed it as a reply ('GC best practices' in 'News from the dev team').
Game Center works fine, but when I let my app run for a very long time (even having it sleeping in multitask and after a day or so resumed playing) then it often happens that the showLeaderboard behaviors don't work any more.
Then, when I let my login button fire another 'login to GC' behavior, they work again.
How do I solve this? It doesn't feel right to fire a login behavior every 5 secs, just to make sure I stay logged in.
Or is this just a sandbox issue?
Thanks a lot, Thomas
first of all - sorry in advance for a double post, but I fear this question is better located in this thread than where I originally placed it as a reply ('GC best practices' in 'News from the dev team').
Game Center works fine, but when I let my app run for a very long time (even having it sleeping in multitask and after a day or so resumed playing) then it often happens that the showLeaderboard behaviors don't work any more.
Then, when I let my login button fire another 'login to GC' behavior, they work again.
How do I solve this? It doesn't feel right to fire a login behavior every 5 secs, just to make sure I stay logged in.
Or is this just a sandbox issue?
Thanks a lot, Thomas
Comments
You said that it happens only wen you run the game for a long time but I also noticed that sometimes it happens after only a few minutes. It's really annoying
________________________________
【ツ】iPhone Icon Pack 【ツ】 - 【ツ】Graphic Pack【ツ】
Free GS demo: High score simple and advanced; Game Center; App Rating System
And: Now I can't even fix it by logging in again. The show leaderboard behaviors just don't work any more. Nothing happens, not even an error message appears. This is quite a problem.
Once your App was in multitask for a minute or so, Game Center behaviors are dead. And most of the time, an app has been at least once in multitask.