So I need to create a leaderboard that would work just as anyone would expect: gather players scores, reset at some point and give players rewards based on their positions. But so far I have not found an API that would let me get a list of prizes to show them in the game. So I am not sure it's possible at the moment.
Since showing the rewards and tiers to players is critically important, I started looking for another way of implementing prizes for a leaderboard. I have come up with a solution to write a Scheduled Task that would reset my leaderboard at some time and then run a cloudscript that would 1) reset the leaderboard and 2) iterate through all the players in the "All players" segment and give them currency and inventory items from some custom JSON file I will store in some key of the Content tab.
The downside of this approach is that I will have to write custom code to implement push notifications and other actions that are possible in case of using the Leaderboard prize tables. And that I will have to iterate over all the players and send a request for each of them to get their position on the leaderboard. And if there are a lot of players I fear it is possible that the execution of a function like this will take more time than allowed.
Despite this I wanted to try out this approach, but I couldn't, because the IncrementPlayerStatisticVersion method can not be called from the CloudScript and I simply can not reset the leaderboard.
Maybe I am missing something. Please give me an advice on how should I solve my issue.