Androidcoder
Androidcoder

Reputation: 4679

Does Google Play Game Services ignore score submissions to a leaderboard that are lower than what is already on that leaderboard for that player

Does Google Play Game Services ignore score submissions to a leaderboard that are lower than what is already on that leaderboard for that player, for instance when a player restarts a character or reinstalls the game.

The documentation doesn't address this from what I can see. In experimenting with this the service appears to ignore lower scores like it should, but I'd like to be sure so there could be less code management.

Upvotes: 1

Views: 1198

Answers (1)

free3dom
free3dom

Reputation: 18978

Yes it does.

From the documentation ("Understanding leaderboards" section):

At the end of a game (or at an appropriate moment that you've determined), the game submits the player's score to one or more leaderboards you've created for the game.

The Games services checks if this score is better than the player's current leaderboard entry for the daily, weekly, or all-time score. If it is, the Games services updates the corresponding leaderboards with the new score.

Also, when a user uninstalls a game it does not remove any leaderboard scores or achievements - the user needs to explicitly remove these by unlinking the app. In other words, the leaderboard scores will remain even if the app is uninstalled and then re-installed at a later stage.

Upvotes: 2

Related Questions