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

Google Play Fail.

Discussion in 'Editor & General Support' started by GladGoblinGames, May 12, 2016.

  1. GladGoblinGames

    GladGoblinGames

    Joined:
    Dec 14, 2011
    Posts:
    118
    I've been trying everything I can think of to get it working. I've done it before, worked fine on another app. This time...I just don't even know where to begin. Basically, I got the unity package from Googles developer website, imported, added it to the game, etc. Now, when I load the app on my phone, Google play initially came up asking for me to grant the app permissions, did that. Then the Google play window closed as expected. Yet it never ever shows the achievement UI when I call it using a button press, and the one achievement I added never comes up.

    Things I've done:

    Setup beta testing and added my Google email

    Uploaded the APK to Google

    Added the required minimum 5 achievements to the play services

    Added the correct achievement ID in the code (triple checked that)

    Called the Social.localUser.Authenticate before calling the achievement UK

    Did an if statement to check if player is authenticated before showing the achievement UI.

    Again, I have no idea why it won't work. I'm running out of ideas now. Any help?
     
  2. GladGoblinGames

    GladGoblinGames

    Joined:
    Dec 14, 2011
    Posts:
    118
    UPDATE: Fixed it. If anyone else is scratching their head, I turned on Saved Game Data option on the Google developer console, went to my phone, cleared the Google Play Services cache and data. This is because I saw on the docs from Google "If you wish to test the enabled saved game data now, clear the cache and data" or something along them lines. Otherwise it takes 24 hours to refresh