I have basic GameCenter authentication code:
Social.localUser.Authenticate((success, err) =>
{
Debug.Log($"SocialPlatformPlugin returned success ${success} and error {err}");
});
This works fine, I call in the Start method of one of my manager classes. However every time I background and foreground the app, I see the Debug.Log fire again, with the stack trace:
MyScript.<>c__DisplatClass2_0:<MyMethod>b_00(Boolean)
UnityEngine.SocialPlatforms.GameCenter.GameCenterSocialPlatform:AuthenticateCallbackWrapper(Int32, String)
Which means GameCenter is trying to reauthenticate (and possibly bring up a popup). Is there a way to prevent this?