Message in Leaderboard: "Hmm, something went wrong in Play Games" - android

I added Google Play Games Services support to my board game app and implemented Achievements and a Leaderboard through the corresponding clients in a similar way as the GPGS sample app "Type A Number" did. When debugging with adb and my tester account, these features worked fine. When I released the app into production, the Leaderboard started showing the message "Hmm, something went wrong in Play Games". Additionally, achievements can be unlocked and are being shown properly. But after closing the app, this progress is being lost.
Under Google APIs -> Google Play Games Services I get this feedback of the GPGS API calls (in the production phase):
GPGS method calls
Since the release, I apparently mainly get 401 as a response code according to the metrics.
SOLUTION: Google Play Games doesn't work with app published in PlayStore

Have the same issue - it looks like Play Services do not work correctly for the testers atm. I have the app that is live and an update which is in closed Alpha. Tested with the test account with the same issue. Then tried the same closed alpha update (previously installed by test user) with the user who is not listed as tester and Services worked fine. Didn't push the update live though - will update when it's live and Play Services status is rechecked.

I had the same problem. Leaderboards stopped appearing after first post. I tried removing OAuth keys and putting them back on, but that didn't seem to do the job. Went for a hail mary and linked the same app AGAIN to Games Services and voila! Image below shows what to do. Worked for me, hope it works for you. Cheers!

Related

Android app (in production) on play store not showing when searched

I released android app "E numbers detector". App passed google review and I got mail that it is on play store. Weird thing is that I can acces my app only through google play developers console. F.e. If I want to tell my friend to install the app, I can not tell him name of app so he can find it on google store. I must enter my GP console and share url to my app with him via WhatsApp. That is so bad and I don't understand why this happens? I even tried searching my app with app name and developer name combined, or with the package name, but nothing helps.
Here is my app link: https://play.google.com/store/apps/details?id=myAndroid.app.hhodzic.foodinspector
I thought also that it has something to do with a number of downloads. But than I found out that the first app that is recommended when you write "E numbers detector" is app with ONLY 10+ downloads.
Please can anyone explain to me how does this works and how can I make my app visible on the google play store. Thanks in advance
You should just wait for 24-48 hours, Google takes time to index your app in the Google Play search.
I just searched for you app and it did appear in the search results. as I said it just need time.
Check your app status at Google Play Console.
App status: Helps you understand your app’s availability on Google Play and who it’s available to (such as testers, all Google Play users, etc.).
More info here

Google Play Games doesn't work with app published in PlayStore

So I built an app and implemented Leaderboards with Google Play Games Services.
If I install the app via adb, the service functions as intended.
If I install the app via the PlayStore, as Release, Beta, Alpha or internal test, I cannot use the services. Logcat doesn't give me any errors. If I want to check the Leaderboard it just says "Hmm, something went wrong in Play Games".
So most of the pages in the internet say that I should clear my cache, or I have a wrong SHA1-key configured. First thing doesn't help. I cleared the cache of my game and the play games app. Didn't worked.
So I checked the SHA1-keys. In the google developer console, my release key is under upload certificate. So that seems fine. Under App-signature, there is the key from google. I checked Firebase, and there is Google Play Games API activated with the key from Google.
So that also seems right. Do you have any ideas? I am working on this for 3 days now. Checked lots of stuff from the internet and nothing works.
If you need any information, feel free to ask.
EDIT:
If I install the app over the app-store, I can check the leaderboard just as normal and the the entries I made earlier with my self installed app version. Until I play a game and send a new score to the leaderboard. From this moment on, the "Hmm, something went wrong" message comes instead of the leaderboard.
Ok so i found that the sha-1 key from the google cert was used with a wrong app-id. I couldn't change the key for the right app-id which was used by me. It said that the key is already used. Even if i deleted the wrong app-id with the right cert. SO i followed this:
The fingerprint you specified is already used by an Android OAuth2 client ID in this project or another project
That solved my problem.
So basically i deleted all the client-ids in the API settings of the play console and relinked the app. Now everything works.
I hope this will help someone in the future
I think I have the same problem that you had. Could you please list the exact steps that you did to fix your problem? How did you relink the app? From what I understood the steps are:
1. delete all OAuth2 client ids of type 'Android' (in Google APIs & services) [does the OAuth2 web client id also need to be deleted ?]
2. unpublish the linked game (in the Developer Console)
3. create a new linked game and enter the sha-1 key of the release keystore (in the Developer Console)
Is this what fixed your problem? I am stuck with my problem: Message in Leaderboard: "Hmm, something went wrong in Play Games" and hence would like to know what you did to resolve yours. Thank you in advance!

Achievements locked again after a while Google play games

I had implemented Google Play Games into my app (in beta test). I added some achievements (more than 5) and have done all the related settings like described in the API. I am testing this with the same google account as my developer account, this is added as a test account inside the console. To unlock an achievement I call
Games.Achievement.unlock(mGoogleApiClient,achievement);
It works and my achievements are unlocked. To call the users Play Games Achievements I use the intent like stated in the api:
startActivityForResult(Games.Achievements.getAchievementsIntent(mGoogleApiClient),1);
The user achievements are shown in the Play Games user view, so everything seems to be ok.
The strange thing is, after a while, let´s say half an hour, the achievements are in reveal (locked) state again.
I can´t find any hint in the API and Developer Guides, that the achievements are reset automatically in the beta test phase or in an unreleased state. Is this a normal behaviour and it will work after official release or do I miss something anywhere?
You may want to try adding the achievementId when you call startActivityForResult.
So, instead of calling
startActivityForResult(Games.Achievements.getAchievementsIntent(mGoogleApiClient),1);
use
startActivityForResult(Games.Achievements.getAchievementsIntent(mGoogleApiClient), REQUEST_ACHIEVEMENTS);
See Unlocking achievements for more information.
I found out that it was because I used an unsigned APK. For get the tests work correctly, it must be a release signed apk. I also put the same released version into the alpha test.

Published Google Play Services but app still says "Ready to Publish"?

I have a game with Google play services. It said I had to publish Google Play services first to publish the game.So I made the Google Play services published but when I go to the game info side, it still says "Ready to Publish" but the buttons to publish aren't working or unavailable. When can I actually publish the app?
I have looked everywhere to publish it but I cannot find anything. Who can help me out here and let me know why it isn't actually live?
HI there might be a delay from google dev console for few minutes, now i can see 'Publish' button active after publishing my game services and waited for atleast half hour,then i see publish button for app as well active

Can't see achievement in google play games

I'm working on a game which has been published to google play. Now we want to add achievement service to this game.
Following google play service samples, everything works fine. I can sign in and unlock the achievement successfully.
But the only thing trouble me is that I can't see the achievements in my device.
First I think it may be because the cache, but after two day, I still can't see it.
The game service's state is ready to test, but I heard from someone else, it is no mater.
So I don't know what I had missed.
Any suggestion is appreciate.
Is the user you are logged in as a "testing user"? If the achievement is not yet published, only testers will be able to see the achievement.

Categories

Resources