Leaderboard Google Play Services

Hi guys,
i was working with Google Play Services and all was working fine. I dont know what happened but the code for showing the leaderboard isn’t working

public static void ShowLeaderboardUI() {

        PlayGamesPlatform.Instance.ShowLeaderboardUI(GPGSIds.leaderboard_highscore);

    }

For the login and post score all is working but to show the leaderboard not. What happens is that when i click the button that calls this function, the windows of the leaderboard opens but is stuck on loading (the circle keeps loading). I made some updates but never touched this part of code indeed other things are working, i just resetted the score of the leaderboard. Anyone can help please?

Check the log output on the device using adb logcat and see if there is anything relevant that might explain the failure.

Also, last time I used it (circa 2018) the google play services stuff was pretty flako-bako, so reboot your Android device and retry perhaps.

Tried to see the log, no errors. All seems working fine. I also tried with restart and other devices but nothing :confused:

Since the above is a static function, I know you don’t have that specific function hooked to your Button.

Do you perhaps have other code in the actual Button-connected function that might somehow not be calling the above static function?

I fixed it. I checked on the play console and i don’t know why the tester group for the services was disabled. Thank you :slight_smile:

1 Like