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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

App crash on login to google play servcies

Discussion in 'Editor & General Support' started by Drestan, Jun 16, 2018.

  1. Drestan

    Drestan

    Joined:
    Jun 20, 2017
    Posts:
    6
    Hi,

    I try to implement in my mobile game the google play services, but when it tries to login app crash it and close it, in the past I implemented in other games and works fine(But in another unity version).

    Google play games version: 0.9.50
    Unity version: 2018.2.0b1

    On code

    Code (CSharp):
    1. PlayGamesClientConfiguration Config = new PlayGamesClientConfiguration.Builder().EnableSavedGames().Build();
    2.         PlayGamesPlatform.InitializeInstance(Config);
    Then

    Code (CSharp):
    1. Social.localUser.Authenticate((bool Status) =>
    2.         {
    3.             ConnectionStatus = Status;
    4.         });
    Attach the adb log
    upload_2018-6-16_17-36-53.png
     
  2. kukubaczek

    kukubaczek

    Joined:
    Aug 23, 2014
    Posts:
    1
    I've this same problem. Tried many solutions found on the Internet but nothing worked for me. I spent 2 days working on implementation GPS for my game but it was just wasting my time.
     
  3. bilal-arikan

    bilal-arikan

    Joined:
    Jul 26, 2013
    Posts:
    8
  4. bilal-arikan

    bilal-arikan

    Joined:
    Jul 26, 2013
    Posts:
    8
    or use
    PlayGamesPlatform.Instance.IsAuthenticated() instead of Social.localUser.authenticated
     
  5. saadali211

    saadali211

    Joined:
    Feb 17, 2017
    Posts:
    19
    APP CRASH 2019 FIXED
    After trying everything turns out its the plugin compatibility problem here is the perfect fix for it.