Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios7 can't get login in gamecenter gain after cancel 3 times [duplicate]

The problem is strange. My system version is IOS7. Everything goes fine on ios7 simulator. However, when I try authenticate on my iphone, the error in the callback block is always "GkErrorCanceled: the requested operation has been canceled or disabled by the user".
Even if I've already logged in game center, the error still pops. I tried google the problem, and find someone on stackoverflow had conquered the issue:
iPhone Simulator 6.0 not able to connect to gamecenter in sandbox mode.
I tried following the way, however, it didn't work for me. I don't know if I did anything wrong. Could some one give me a more detailed solution on this issue? Thanks a lot!

like image 654
user2353228 Avatar asked Sep 22 '13 07:09

user2353228


People also ask

How do I recover my old Game Center?

Log into Game Center using the email address you originally linked to your account. To do that, go to Settings > Game Center > Apple ID. 2. After you log into Game Center using the right Apple ID and open the game, you'll be prompted to load the existing progress.

Is Game Center login same as Apple ID?

Make sure that you're signed in to Game Center with the same Apple ID that you use on your other devices. Go to Settings > Game Center to see the Apple ID that you're using with Game Center.


2 Answers

Update: This issue appears to happen in sandbox only.

Got this problem too, and here what I've figured out:

GameCenter shows prompt for login only a few times (3-5), if all prompts were canceled - GameCenter becomes disabled for this app.

In iOS 7 there is a problem: GameCenter disabled state remains even if you login into the GameCenter app itself - application will still receive kind of this error:

error: Error Domain=GKErrorDomain Code=2 GkErrorCanceled: the requested operation has been canceled or disabled by the user

There are two workarounds:

First:

  1. Log out of Game Center through the Settings app.
  2. Reset all settings
  3. After the device rebooted, launch app with development build. After launch the GC Login viewController pops up.

Second (this one helped me):

  1. "Erase All Content And Settings".
  2. Set up as a new device - do not restore from any backups.

Both workarounds are not a viable option for production - I hope there will be a fix from Apple soon.

Most of the info is from to this discussion.

like image 182
Luten Avatar answered Sep 20 '22 05:09

Luten


Settings > General > Reset > Reset All Settings

(i read this somewhere but if the user has to do the same its not a good solution) (i did this for a app that i am testing , not a app gone live on the App Store) i tested for a n app from the appstore(not mine) and i couldnt reproduce the problem i mean after i logged back from settings i was logged back in that app.

But for app i am testing, only reseting worked . I just saw a new ios update is available maybe that will fix it .

like image 35
dave Avatar answered Sep 20 '22 05:09

dave