Change Attribute Based on Successful Game Center Login
Does anyone out there have a method to change an attribute based on a successful Game Center log in? Ex. I have a GameCenter button that, currently, when pressed logs you into GC and shows leader boards/achievements. It also changes a boolean to true that is then saved and used to automatically sign in the player on all subsequent plays.
What I would like to do is have this boolean set to true ONLY if the user successfully logs into GC. So if they cancel the log in or it fails, the boolean would remain false. Similar to the way the IAP's work. Does anyone have any idea how to go about this?
Thanks
What I would like to do is have this boolean set to true ONLY if the user successfully logs into GC. So if they cancel the log in or it fails, the boolean would remain false. Similar to the way the IAP's work. Does anyone have any idea how to go about this?
Thanks
Best Answer
-
bazookaBen
Posts: 318
can't use GS to track when login is successful.
what you can do is attempt to login every time the game starts. It's non-intrusive and doesn't slow the game, because it's a seperate thread running on the device.
Answers
I originally had no triggering boolean so that as soon as the game launched no matter what, it would try to log you in to GC. Didn't fly well with beta testers who didn't use GC.