What to do after Game Center login is cancelled

Hi all,

I understand from the documentation that if the user cancels the Game Center login screen from within a game, the dialogue will not be presented again.

What I am struggling with, is what to do in this scenario.

Is it just simply a case of displaying a message to tell the user to close the app, head to the settings, Game Center settings and enable it, or is there a way I can load the settings app and into the Game Center section.

It seems like a poor experience to not be able to assist the user here.

Regards
Gavin
Accepted Answer
Does your app need to use Game Center? Can users play it without using leaderboards etc?

My app does require Game Center as it is a multiplayer game. Therefore I added gamekit to the plist and if the user cancelled the login viewcontroller or was not authenticated I did as you suggested and had an alert saying they needed to enable Game Center in their device’s settings.


To ensure that your game runs only on supported devices, add the gamekit key to the list of required device capabilities in your game’s Info.plist file.

Agree that it’s a bit disappointing to not be able to present the login screen in the future in case people change their minds. I can also see that it would become annoying to have the bubbles bounce every time you load an app if you really weren’t interested. I read it stops appearing after three presentations, but can’t find the documentation now.


Thanks,

It seems like GK capability was added to the info.plist automatically somewhere along the line, although not sure when.

Agreed it could be annoying to have the login screen each and every time the app is loaded, but there is no offline as such in the game and requires the user to be signed in for the turn based gameplay. There are alternatives such as GameBrain that the user would be able to play online without signing in, but they add a whole bunch of other issues to work around.

Just the option to have Game Center in your apps settings like you get with notifications would be a good start.

For now, I will continue to check if the user is authenticated and if not, give them instructions on how to turn in on.

Thanks for replying :)
What to do after Game Center login is cancelled
 
 
Q