Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Game Center Warning: Attempt to present <GKHostedAuthenticateViewController>

Discussion in 'iOS and tvOS' started by rk_wf, Oct 23, 2015.

  1. rk_wf

    rk_wf

    Joined:
    Mar 26, 2015
    Posts:
    3
    Running Unity 4.6.8p8
    Reproduced in iOS 8.3 & 9.0

    Warning: Attempt to present <GKHostedAuthenticateViewController: 0x16ee8e50> on <UnityDefaultViewController: 0x180849f0> which is already presenting <GKHostedAuthenticateViewController: 0x1817e5f0>

    Steps to Reproduce:
    1) Make call to Social.localUser.Authenticate()
    2) Once the Game Center login screen is displaying, hit the home button.
    3) Bring the app to the foreground by tapping the icon on the home screen.
    4) The warning will come up in xcode logs.

    After this happens, the Game Center login screen will not go away. If you hit cancel or login, the screen just stays in the foreground.

    We are not calling Social.localUser.Authenticate() a 2nd time.

    This happens in an empty project with 1 sprite and 1 UI Canvas and no 3rd party plugins as well as in our actual project of course. On 4.6.5(not sure what patch) the game would just crash. I decided to update to see if the behavior changed, and it did, but it is not fixed.

    Is there a work around for this? Any suggestions?
     
  2. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Could you create a bug report and attach simplified repro project to it? Please post the bug number here.
     
  3. rk_wf

    rk_wf

    Joined:
    Mar 26, 2015
    Posts:
    3
    Submitted bug #739670

    Thanks
     
  4. rolandas_at_unity

    rolandas_at_unity

    QA Minion Unity Technologies

    Joined:
    Jul 9, 2014
    Posts:
    3
    Hi,

    I tried to reproduce your issue in various ways with 4.6.8p3, 4.6.8p4 and 4.6.9f1. Everytime GC worked without issues. Maybe there is something else I am missing?
     
  5. zehreken

    zehreken

    Joined:
    Jun 29, 2009
    Posts:
    112
    Currently, I have the same issue. We are on Unity 5.2.2f1 and Xcode 7.2.
    I press the home button before the GC popup opens or while the popup is opening. If I open the app again, it always throws the warning mentioned in the first post, or worst the app crashes.

    By the way I can't find the bug report on the issue tracker website using the issue id 739670. Is there way to find it?