playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.45k stars 963 forks source link

Reset progress of Leaderboard on Google Play Console does not clear Social.LoadScores #3232

Open MoHortus opened 1 year ago

MoHortus commented 1 year ago

Describe the bug I am testing play-games-plugin-for-unity in my android app. On my Google Play Console I have Leaderboard in draft form, where I can click Reset Progress. If I check Social.ShowLeaderboardUI() the leaderboard is empty as expected.

However, if I check leaderboard with Social.LoadScores values are still still saved. Scores and ranks are not cleared. Is there some workaround for that? Do I need to somehow do some refresh or something?

Versions

MoHortus commented 1 year ago

Also deleting the leaderboard, make the one with the same name does not help (ID is also changed but it seems ID does not matter...). Social.LoadScores still gets the old value eventhough leaderboard under Google Play Console says there are not scores saved as leaderboard is new (or if i reset it)

MoHortus commented 1 year ago

Wanted to try alternatives to solve the issue. But that alternatives do not exist anymore in the new version:

I already planned to revert to old version of the plugin because I cannot sign out in the app. But now I really have to. What is the point of reseting the leaderboard in play console if it actually does not work....

MoHortus commented 1 year ago

So i tested more while trying to have plugin with v10.14. I did not figure it out totally.

I Social.LoadScores and I rather use PlayGamesPlatform.Instance.LoadScores instead. -Still after reset of leaderboard in google play console, score does not reset. It only resets when I set manually new value (some low value for example. I do this with Social.ReportScore). I think maybe problem is that I have only one score in the leaderboard. And it seems that reset does not want to totally erase that... it still has last record value inside. -Even with above "workaround" I observed some lag in refresh of the leaderboard value. I discovered some olddd reported bug where people figured out to add to AndroidClient.cs manually fix to have fore reload for PlayGamesPlatform.Instance.LoadScores. Read more about this here: https://github.com/playgameservices/play-games-plugin-for-unity/issues/1534#issuecomment-724978649

Thing which i thought had an effect, but probably does not. It seemed that draft leaderboard behaves differently if your email is specified as tester or not in Google Play Console (Play Games services\Setup and Management\Testers). I guess I paused one internal track of release. So under settings for testers the track got cancelled and my tester email got removed for Play Games services. I added that back.