Search Unity

After updating unity to 2020.3.33 my google play services not logged in.

Discussion in 'Editor & General Support' started by xMRSDx, May 6, 2022.

  1. xMRSDx

    xMRSDx

    Joined:
    Aug 30, 2020
    Posts:
    3
    In my unity 2019 version GPGS is work fined but when i update unity to 2020.3.33, every time my google play services login gets failed.

    All my previous build that build using unity 2019 is still work correctly but unity 2020.3.33 build is not login with the google play services.

    i try to remove and reinstall Google Play Services Plugin but still it not working.

    please help me and thank you.
     
  2. xMRSDx

    xMRSDx

    Joined:
    Aug 30, 2020
    Posts:
    3
    Solve this problem by updating play services plugin from v0.10 to v0.11.

    Now login is work but login prompt is not display on top on the screen, why ? my code is :

    i try with Social :-
    Code (CSharp):
    1. Social.localUser.Authenticate((bool success) => {
    2.                     if (success)
    3.                     {
    4.                         isUserSignIn = true;
    5.  
    6.                         if (PlayerPrefs.HasKey("HighScore") && PlayerPrefs.GetInt("HighScore") >= 50)
    7.                         {
    8.                             OnAddScoreToLeaderBorad(PlayerPrefs.GetInt("HighScore"));
    9.                         }
    10.                     }
    11.                     else
    12.                     {
    13.                         isUserSignIn = false;
    14.                     }
    15.                 });
    16.  
    And also try with PlayGamesPlatform :-
    Code (CSharp):
    1. PlayGamesPlatform.Instance.Authenticate((success) =>
    2.                 {
    3.                     switch (success)
    4.                     {
    5.                         case SignInStatus.Success:
    6.                             isUserSignIn = true;
    7.  
    8.                             if (PlayerPrefs.HasKey("HighScore") && PlayerPrefs.GetInt("HighScore") >= 50)
    9.                             {
    10.                                 OnAddScoreToLeaderBorad(PlayerPrefs.GetInt("HighScore"));
    11.                             }
    12.                             break;
    13.                         default:
    14.                             isUserSignIn = false;
    15.                             Debug.Log("log - - - " + success);
    16.                             break;
    17.                     }
    18.                 });
     
  3. xMRSDx

    xMRSDx

    Joined:
    Aug 30, 2020
    Posts:
    3
    All Problem is solved now.