Really glad it helped!
Can see some negatives though… You are ejected from your app and you do not land on your game’s “page”. Might be better than nothing.
Really glad it helped!
Can see some negatives though… You are ejected from your app and you do not land on your game’s “page”. Might be better than nothing.
Let me ask a question (instead of answering it). What happens if you call gameNetwork.init() and the person declines to login and then later try to make a gameNetwork.request()? I would hope gameCenter would be smart enough to prompt to login when needed.
Rob… why would you put Apple and smart in the same sentence?
nothing happens when you call any of the gameNetwork functions if the user is not logged in.
The engineers have confirmed that the expected behavior is that if an app’s user declines the login when your app runs, that the app should not prompt them again and if they do, they would need to goto the game center app and sign in through there. I’m guessing that you can use the call back listener and determine when gameNetwork.init() is called if they got logged in or not and remember that state and if they want to use GameCenter features later, you could use system.openURL() to the URL scheme for GameCenter to load that app.
I’m implementing GC and testing cancelling out to see what happens then. Now I can’t get it to log in again to continue testing, even after removing and reinstalling the app (even making a new build).
Rob said:
…if an app’s user declines the login when your app runs, that the app should not prompt them again and if they do, they would need to goto the game center app and sign in through there.
I’m having problem doing that since it was Sandboxed and now I only see the non sandboxed Game Center.
Any ideas?
Have you logged out of the game center app?
Thanks Rob, logging out of the non sandboxed account did it.
krystian6, how did you solve this issue?
i also want my player to be able to sign in later during the game, and experience multiplayer features.
dingo: I don’t call gameNetwork.init until the moment user choses to use features enabled by game center.
After that I store the state [whether they logged in or not] and run gameNetwork.init when app starts only when this state is set to true.
So before user takes action to login, I don’t do it automatically.
thanks, i guess i have to do it the same way. one other thing: it seems as the listener of the init function gets called on resume. i guess that’s by design?
the thing is that i am doing a callback once player has logged in into gamecenter (refresh player list). but once i am in the game, suspend, and resume, of course it fails.
yeah, because user is logged back in during resume the listener gets called. there’s the banner with “welcome back you addict” at the top.
It’s quite possible that your game will be resumed after a week of inactivity, so you have to keep that in mind.
krystian6, how did you solve this issue?
i also want my player to be able to sign in later during the game, and experience multiplayer features.
dingo: I don’t call gameNetwork.init until the moment user choses to use features enabled by game center.
After that I store the state [whether they logged in or not] and run gameNetwork.init when app starts only when this state is set to true.
So before user takes action to login, I don’t do it automatically.
thanks, i guess i have to do it the same way. one other thing: it seems as the listener of the init function gets called on resume. i guess that’s by design?
the thing is that i am doing a callback once player has logged in into gamecenter (refresh player list). but once i am in the game, suspend, and resume, of course it fails.
yeah, because user is logged back in during resume the listener gets called. there’s the banner with “welcome back you addict” at the top.
It’s quite possible that your game will be resumed after a week of inactivity, so you have to keep that in mind.
It’s actually quite funny because now the whole system is even more annoying. It’s hilarious actually! Instead of showing the popup we have to result to linking to gamecenter page out of the app which is 10x more annoying.
There’s still a chance that the user locks them self out of the functionality. It’s crazy, maybe someone at apple had some stats results quotas to meet, “cancelled logins down by 80%” where my bonus!
It’s actually quite funny because now the whole system is even more annoying. It’s hilarious actually! Instead of showing the popup we have to result to linking to gamecenter page out of the app which is 10x more annoying.
There’s still a chance that the user locks them self out of the functionality. It’s crazy, maybe someone at apple had some stats results quotas to meet, “cancelled logins down by 80%” where my bonus!