无法在iOS游戏中心中重新验证

无法在iOS游戏中心中重新验证,ios,authentication,xamarin.ios,xamarin,game-center,Ios,Authentication,Xamarin.ios,Xamarin,Game Center,iOS+Xamarin iOS中的GameCenter出现了一个非常奇怪的问题 当用户使用GameCenter取消身份验证过程时,如果我再次设置AuthenticateHandler,则它不会执行任何操作,除非我将应用程序发送到后台,然后将其还原 这是正常的行为还是有什么方法可以让它起作用 如果您错误地按了取消选项,您将无法进行身份验证,这是非常恼人的 这是我的身份验证码: if (!GKLocalPlayer.LocalPlayer.Authenticated) {

iOS+Xamarin iOS中的GameCenter出现了一个非常奇怪的问题

当用户使用GameCenter取消身份验证过程时,如果我再次设置AuthenticateHandler,则它不会执行任何操作,除非我将应用程序发送到后台,然后将其还原

这是正常的行为还是有什么方法可以让它起作用

如果您错误地按了取消选项,您将无法进行身份验证,这是非常恼人的

这是我的身份验证码:

    if (!GKLocalPlayer.LocalPlayer.Authenticated) 
    {
            GKLocalPlayer.LocalPlayer.AuthenticateHandler = 
            (UIViewController cont, NSError Err) => {

                if (cont != null)
                    OpenGLViewController.CurrentController.
                    PresentViewController (cont, true, null);
                else if (GKLocalPlayer.LocalPlayer.Authenticated) {
                    //Authenticated user
                } else {
                    //Error
                }
            };

    } else {
                   //Authenticated user
    }