How do I reset Google Play Games leaderboards before publishing? - android

I've done some tests while integrating the new Google Play Games with fake scores, now I need to reset the leaderboards before publishing my game!
I found this REST API:
https://developers.google.com/games/services/management/api/?hl=en#Scores
But this seems to be related only to web games, not Android games:
"Use the Google Play game services REST API to set and retrieve game services data from your web game"
Thanks!

I ended up switching all my leaderboards in the Developer Console to use "lowest scores are best" instead of the previous "highest scores are best" and this seems to have reset the old scores that were saved. It's a bit of a hack but very useful. You could probably switch back again and everything would still be cleared.

Updating the answer as it is now possible to reset the leaderboard during development.
You can only reset player progress data for your draft leaderboards.
To reset leaderboards in the Google Play Developer Console, click the
button labeled Reset leaderboard progress at the bottom of the form
for that event. To reset leaderboard data programmatically, call the
Management API Scores methods.
Reference: https://developers.google.com/games/services/common/concepts/leaderboards#resetting_a_leaderboard

Reset Test Achievements and Leaderboard Scores
As of Sep 9 2013 (From the Public issue tracker for the Play Games platform):
Issue 9: reset leader board / achievement data.
If you are still in test phase, you can reset your Achievements by deleting your account from the Test list in your developer console and adding it again.

Related

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

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!

Android Daily Weekly leaderboard implementation?

Hi I want to implement leaderboard for my game. I just implemented google play leaderboard. But the question is I want Daily and weekly leaderboard. And I need to reset from google play console daily and weekly.
#Thank you.
You can reset the value in draft leaderboard only , daily/weekly as needed ,
in the Google Play Console, click the button labeled Reset leader board progress at the bottom of the form for that event.
To reset leaderboard data programmatically, call the Management API Scores methods.
link https://developers.google.com/games/services/common/concepts/leaderboards

How do you modify achievements on Google Play Games?

We're developing a game which has achievements and while we haven't released it yet, we did publish for Beta testing and have also published Game Services for that app for testing purposes.
We now realise that we need to tick the incremental option on a few achievements but we can't as "this field cannot be changed after publishing". I have unpublished the game and service but this never allows us to edit.
We then thought we could delete the achievement and set it up again, but there is no Delete or Reset option available.
Is this a case of the unpublish setting taking a while to propogate on Google Play or is what we need to do impossible?
I never published to Google Play public so it would be frustrating if we weren't able to fix this :(
Any help would be greatly appreciated! Thanks.
Unfortunately, you are correct. There is no way to change those attributes or delete a published achievement. So the alternatives are:
Create a new achievement with the configuration you want to have,
and leave the existing one there (maybe achievement for starting the
incremental achievement?).
Create a new game configuration. This
means all the game state will be reset from the player's
perspective.
In the future, I don't think you need to publish the game to start testing. You can Alpha and Beta test with named testers, and make changes to the game configuration. Then once the game is perfect, publish it. More information on staged rollouts: https://support.google.com/googleplay/android-developer/answer/3131213
Quoting from the official Google documentation for Editing the achievement.
Note: Once an achievement is published, its initial state (hidden or revealed) and its type (incremental or standard) is fixed and cannot be changed.
Undoing an edit
If you decide you don't like your current achievement and want to go back to your achievement the way it was before, select Revert from the drop-down list in the Google Play Developer Console, and all of your achievements will revert back to the previously published version.
Deleting an achievement
Once your achievement has been published, it cannot be deleted.
You can only delete an achievement in a pre-published state by clicking the button labeled Delete at the bottom of the form for that achievement.
Resetting an achievement
You can only reset player progress data for your draft achievements.
To reset achievements in the Google Play Developer Console, click the button labeled Reset achievement progress at the bottom of the form for that event.
To reset achievement data programmatically, call the Management API Achievements methods.

View leaderboard for app in Google Play Games

I just published in app to the Play Store that uses the Google Play Services API. I setup a leaderboard in my developer console, and can successfully publish scores and display the leaderboard in game (along with everyone else's score in my circles, and the public "all-social" leaderboard).
However, when I open the Google Play Games app (or even in my developer console), there doesn't appear to be a way view my leaderboard. Is there a way to view the leaderboard outside of my app? Even if it is through the developer console.
Thanks!
Andrew
The leaderboard can only be viewed in-app, you can only see how many people improved their scores in console and other stadistics.

Writing to Google Play Leaderboard API callback returns successfully but no scores are recorded

I've implemented Google Play Services into my Unity-Android game using the plugin here. All other aspects of the API work fine, I can unlock achievements, authenticate sign ins, bring up the leaderboard UI. However, when I request for a score to be submitted, the API callback is successful, as evidenced by my Debug.Log but I don't actually see any scores in the leaderboard.
Furthermore, when I look at the engagement section of my Google Play Dev console it confirms that scores were being submitted up until Feb 24 (the day we published the new APK and the linked game services).
This seems like it's more on Googles end than mine but Play Dev support seems to think otherwise. Has anybody had this problem before? I expected there might be some delay as Google Play takes awhile after everything is published for everything to be working as expected but it's been two days now and still no scores on the leaderboard. For sanity's sake the code I'm using to request the leaderboard report is
Social.Active.ReportScore((long)score, string ID,(bool success)=>{});
The leaderboard score needs to be greater than the last one or it will not be changed, its an incremental leaderboard and you cannot decrease its value. (For each user/player)

Categories

Resources