Slyddar
Member
Hi guys,
Looking for some help with the leaderboard/achievement system for Android. I have an app that has been setup in Google Play Console as a linked app to the project. I've created a leaderboard and 5 achievements and am trying to show those when the app runs. I've run it on a phone and an emulator and both produce the same error.
The code I use to show the leaderboard on a button is simply:
When pressed the Google Play Games logo shows and it attempts to log in. Then an error is shown on the device - "Failed to sign in. Please check your network connection and try again."
The error shown in the output window is:
I've tried creating a new keystore file, and relinking the hash file, redoing the whole SDK and NDK install, linking the API in Google API Manager, I have the 2 Google Play Extensions installed plus have done many other things through Google searches. At the moment I'm at a loss, so am wondering if anyone has come across this before?
Also I can sign into Google Play in other games and it works fine.
I've followed information in this, among others - http://www.fm-studio.net/blog/gmstudio-add-google-play-games-2-new/
Any help would be appreciated.
Thanks.
Looking for some help with the leaderboard/achievement system for Android. I have an app that has been setup in Google Play Console as a linked app to the project. I've created a leaderboard and 5 achievements and am trying to show those when the app runs. I've run it on a phone and an emulator and both produce the same error.
The code I use to show the leaderboard on a button is simply:
Code:
if active {
achievement_login();
achievement_show_leaderboards();
active = false;
}
The error shown in the output window is:
Code:
05-18 17:51:21.697 11116 11148 I yoyo : AchievementLogin()
05-18 17:51:21.698 11116 11116 I yoyo : Calling connect on googleapiclient
05-18 17:51:22.239 11116 11116 I yoyo : onConnectionFailed called with result:ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{fca1fea: android.os.BinderProxy@7c512db}, message=null}
Also I can sign into Google Play in other games and it works fine.
I've followed information in this, among others - http://www.fm-studio.net/blog/gmstudio-add-google-play-games-2-new/
Any help would be appreciated.
Thanks.
Last edited: