Home » Android » android – How do I reset Google Play Games leaderboards before publishing?

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

Posted by: admin April 23, 2020 Leave a comment

Questions:

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!

How to&Answers:

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.

Answer:

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

Answer:

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.