Reenabling GameCenter after user-cancelled 3 times

2020-02-17 01:50发布

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?

2条回答
甜甜的少女心
2楼-- · 2020-02-17 01:59

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

查看更多
小情绪 Triste *
3楼-- · 2020-02-17 02:05

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.

查看更多
登录 后发表回答