Play games loadLeaderboardMetadata() returns outdated data

前端 未结 1 1693
北恋
北恋 2021-01-19 17:53

I\'m working on an app with Play Game Services, and I\'m making a custom UI to display the list of leaderboards with only the score and the ranking of the player as dynamic

相关标签:
1条回答
  • 2021-01-19 18:25

    I finally found that by using the loadCurrentPlayerLeaderboardScore instead of the loadLeaderboardMetadata method, it seems to work.

    Update: Except that this method is really slow if you have 30 leaderboards, and it throws error because you make to much call to the API's, so it is not a viable option. Except if you have very few leaderboards.

    0 讨论(0)
提交回复
热议问题