I have a problem with logging a user to the Game Center. I first present the login dialog right after the application finishes loading. If the user cancels the dialog. the button doesn't do anything - the Game Center dialog doesn't get shown.I immediately get the error
error Code:-
_authenticateUsingAlert: Failed to authenticate player with existing credentials.Error: Error Domain=GKErrorDomain Code=6 "The requested operation could not be completed because the local player has not been authenticated." UserInfo={NSLocalizedDescription=The requested operation could not be completed because the local player has not been authenticated
Social.localUser.Authenticate(success => {
if (success)
Debug.Log("success authenticate");
else
Debug.Log("Failed to authenticate");
});