I\'m trying to call the authentication method of game center, however no authentication screen comes up and the callback return with an error : \"the requested operation has
You should do something like that after you have tested if game center is available on the specific device:
GKLocalPlayer *localplayer = [GKLocalPlayer localPlayer];
[localplayer authenticateWithCompletionHandler:^(NSError *error) {
if (error) {
//DISABLE GAME CENTER FEATURES / SINGLEPLAYER
}
else {
//ENABLE GAME CENTER FEATURES / MULTIPLAYER
}
}];
In iOS 4.2 when a user cancels the login to Game Center, after 3 attempts that error is returned. You can resolve the error by logging in using the Game Center app, then try your app again, you should see the welcome back message from Game Center in your app