How To Load Scores For Current User From Multiple Leaderboard Using Google Play Games Services?
On load of my game I want to receive all scores for all levels (I have 22 currently) of my game for the current player. I am doing this: @Override public void onSignInSucceeded() {
Solution 1:
You are experiencing rate limiting by the server. For more information read https://developers.google.com/games/services/quota. There are is a limit on the number of calls per user per 100 seconds, you can look at the API on the developer console and see what the values are. You'll need to keep your requests under that limit.
You can apply to increase the limit which is one way of solving the problem, the other approach might be to cache the results and be smart about any updates that need to be made.
Alternatively, it sounds like you might want to look at keeping a database of scores yourself, vs. using leaderboards as a datastore. Something like Firebase Realtime Database might be more appropriate.
Post a Comment for "How To Load Scores For Current User From Multiple Leaderboard Using Google Play Games Services?"