MrStahlfelge / gdx-gamesvcs

Easy integration of gameservices in your libGDX game: Google Play Games, Apple Game Center, Amazon GameCircle and more
Apache License 2.0
113 stars 20 forks source link

GPGS Android: fetchLeaderboardEntries returns same values #22

Closed SimonIT closed 6 years ago

SimonIT commented 6 years ago

On my android phone, the leaderboard entries are always the same. If there are new values in the Google Play Games App, the old are given by fetchLeaderboardEntries, even if I clear the storage of my App. On the desktop are the entries up-to-date.

MrStahlfelge commented 6 years ago

Did you try to set forceRefresh to true?

SimonIT commented 6 years ago

This solved this problem, but now it takes forever, on my LG G3 for example 138 seconds, to load. And sometimes, it doesn't load. And by the way, does the limit and the relatedtoplayer parameters work in google play games? Because I get all entries with a limit and with limit=1 and relatedtoplayer=true I don't get only the value of the current player.

MrStahlfelge commented 6 years ago

Yes they work and are given to the GPGS API: code here Google's doc

Unfortunately, the API is slow. That's why there is the forceReload param. You should call the method with forceReload only when it is needed and not when the user is waiting for it.

SimonIT commented 6 years ago

Ok, thank you