Achievements Google Play Services not working

Hello all,

I’m trying to implement Google Achievements into my Android game, but I’m unable to make it works. When I press the “Show Achievement” button it doesn’t show anything. No login window, no achievements, no nothing. Just I press and nothing happens.

I’m going to start for the very first. I have a menu with two buttons: “login” and “show achievements”.

This two buttons call the methods “LogIn()” and “ShowAchievements()” of this script:

*Using last version of Unity 2018.2.5f1

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using GooglePlayGames;
using GooglePlayGames.BasicApi;
using UnityEngine.SocialPlatforms;

public class AchievementManager : MonoBehaviour {

   public static AchievementManager instance;

   // Use this for initialization
   void Awake () {
       if (instance == null)
       {
           instance = this;
       }
   }

   void Start()
   {
       PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();

       PlayGamesPlatform.InitializeInstance(config);
       // recommended for debugging:
       PlayGamesPlatform.DebugLogEnabled = true;
       // Activate the Google Play Games platform
       PlayGamesPlatform.Activate();
   }

   public void Login()
   {
       Social.localUser.Authenticate((bool success) => {});
   }

   public void ShowAchievements()
   {
       Social.ShowAchievementsUI();
   }
}

I would need to know if the scripts are ok or I’m missing something.

Ok, let’s think that this script is correct. Let’s go to my Developer Account:

  • I’ve done 5 achievements (with icons too).
  • In linked apps and the google API, I’ve placed my SHA1 from my unity keystore (that thing of command promt > keytool, etc.). So, my linked app has the correct SHA1.
  • I have filled all the information.
  • I have my game in Alpha Test (and yes, with the correct e-mail for the user).
  • Also, I have in testing allowed the “Testers”.
  • I have published my game services correctly.
  • I have restarted the process a lot of times. I have payed a plugin from asset store which says “Easy Achievements” (which clearly isn’t for me).
  • I tested with “official” “test scenes”.
  • I have not activated the anti-cheats options from linked apps.
  • In Window > Google Play > Android Settings, I’ve correctly added all the information and the “Get resources” from achievements.

Here I let you some screens of my google developer, so if you can see some error or something, I’ve becoming crazy with this:

Thank you, and I hope someone can help me with this T_T

Hey, did you ever manage to get it working?

If Login fails → This means mostly you have issue with SHA setup. Most of our customers (99%) have SHA setup issue when it comes to our Game Services feature. So first make sure login works, then we can look into achievements.

Share here the complete logcat log once you reproduce the issue. Please don’t add any filters to the logcat as it won’t show any error info.