How to delay the display of the Game Center popup?

I have included Game Center (GC) in my game. It works great, except for the annoying message that may appear in the middle of an intense action, requiring 100% gamer's attention:

"Failed to connect to the Game Center server. Cancel / redo?"

I do not mind the message, but the information is not so urgent that it should be displayed immediately. I would like to display it after the user has moved to the main menu or at some other moment. Is there any way to achieve this?

+6
source share
1 answer

Postponing the next login to the game center did the trick for me.

if([GameCenterManager isGameCenterAvailable]){ gameCenterManager = [[GameCenterManager alloc] init]; [gameCenterManager setDelegate:self]; [gameCenterManager authenticateLocalUser]; NSLog(@"Game center logged in"); } else NSLog(@"Please login to game center"); 
+1
source

Source: https://habr.com/ru/post/901933/


All Articles