GPGS Android: fetchLeaderboardEntries returns same values
SimonIT opened this issue · 4 comments
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.
Did you try to set forceRefresh to true?
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.
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.
Ok, thank you