Reenabling GameCenter after user-cancelled 3 times (iOS7 only) [duplicate]

这一生的挚爱 提交于 2019-11-28 17:26:47

问题


If the user dismisses the GameCenter login from your app 3 times, they're never prompted again. The authentication handler returns this:

The requested operation has been cancelled or disabled by the user.

In previous versions of iOS (6 and below), the user could go to the GameCenter app, login, and all would be good from that point on - they could return to your app and login as normal.
In iOS7 (as far as I can tell), canceling 3 times permanently disables GameCenter for your app on that device. Deleting/reinstalling the app, or logging out/in, even as a different user, doesn't fix it - you still get that message.

I can't find any setting anywhere that gives the user the option to reenable it for your app.

Does anyone know of a solution for this?


回答1:


General > Reset > Reset All Settings

Thats the only way I've heard of fixing it, hopefully Apple comes up with a more elegant way, because it's downright annoying and absolutely NOT user friendly.

In iOS 6, if you logged out and logged back into GC, it would be re-enabled. But that functionality was removed in iOS 7 for some reason.

Edit:

I read in another SO question, that this works properly (log-out, log-in re-enables GC) outside of a sandbox environment.




回答2:


I can confirm the following:

On the iPhone Simulator, using Settings, log into your iTunes sandbox account, then log back out. After that, the count will be reset and you can continue testing Game Center view controller authentication.

This is on XCode 5.0.2 and iPhone 4-inch 64-bit Simulator with iOS 7.0.3



来源:https://stackoverflow.com/questions/18927723/reenabling-gamecenter-after-user-cancelled-3-times-ios7-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!