- Home /
GPGS Leaderboard returns only the outdated scores (Google Play Game Service)
(lower number is better)
I am testing GPGS (Google Play Game Service) Leaderboard now, but it seems doesn't update it immediately.
The thing weird is this. Let's say I got a single ILeaderboard instance (called 'leaderboard'). And I am fetching "my" score once from 'leaderboard.scores', and once from 'leaderboard.localuserscore'. Even though I am using same ILeaderboard instance, "my" scores from above two approaches are different.
So I am guessing when I post score on the leaderboard, maybe GPGS plugin update my local user score immediately while it is take some time for the actual leaderboard to be updated. but I couldn't find a proper answer on the web.
Answer by willisuh · Aug 09, 2019 at 02:36 AM
As expected from unity community, no one posts a god damn answer
Preach. I spend more time in dead-end threads of issues EVERYONE is CONSTANTLY having than actually finding answers to said common issues.
Answer by BlackBindy · Sep 19, 2018 at 08:37 AM
I have solved the issue on my own, but still it is a temporary solution.
When you load a leaderboard, there would be a two way of doing it.
Use PlayGamesPlatform.Instance.CreateLeaderboard() + .LoadScores()
Use PlayGamesPlatform.Instance.LoadScores()
I was using the first one and the problem I wrote on this post happened. But when I use the second one, I could get the correct latest scores.
I think it is a bug of Unity or GPGS plugin, which loads a leaderboard ONLY from cache not from network.
Answer by rameezfyyz · 6 days ago
Can you please share your GPGS script or explain in detail how you did it? I have been to several threads and tried everything but the leaderboard never fetches the updated score after the first fetch. I tried the solution by Zory in https://github.com/playgameservices/play-games-plugin-for-unity/issues/1534 but it did not work. Maybe I did something wrong. Your help will be appreciated.