I have a Leaderboard that resets automatically everyday. I need to retrieve the following information (from the client app) for the Leaderboard feature in the game I am working on:
- The client's rank and score today
- The client's rank and score yesterday
- The #1 player's rank and score today
- The #1 player's rank and score in the previous leaderboards
Looking at the Leaderboard API documentation, it seems that I lack the ability to get these information directly.
For example: If I want to retrieve the player's rank and score, I would need to call GetLeaderboard() and check every entry if it's the player's ID. If the player isn't in the first 100, I need to call GetLeaderboard() again and again until I find the player. I thought I could use GetPlayerStatistics() but it only includes the score and not the rank.
Is there a way to retrieve those information from the client?