Search Unity

Game Center Implementation

Discussion in 'iOS and tvOS' started by MajidKhosravi, Feb 6, 2014.

  1. MajidKhosravi

    MajidKhosravi

    Joined:
    Jun 21, 2013
    Posts:
    39
    I am trying to integrate our iOS game with game center using Unity Social API,

    My question is that whenever I authenticate, user will be prompted to login:

    Social.localUser.Authenticate (success => {
    if (success)
    {
    Debug.Log ("Authentication successful");
    }
    else
    {
    Debug.Log ("Authentication failed");
    }
    });

    In Amazon Game Circle for example, there is initialize function and it checks if already user is logged in or not, but doesn't prompt user to login and there is a separate login command to prompt users.

    I am basically looking for similar function here with Game Center, because it would be annoying for users to get prompted to login ( if they don't want to login ) into game center everytime they visit the app .

    Can anyone please give me a hint on this? I am stucked for a while now.

    Thanks.
     
  2. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
  3. MajidKhosravi

    MajidKhosravi

    Joined:
    Jun 21, 2013
    Posts:
    39
    Sorry I have missed that, Thank you for the reply.