I'm using leaderboards that reset on daily basis and reward players after reset happens. I'm calling GetUserInventory API once leaderboard resets(displaying remaining time to reset in game) to get information on virtual currency and it is returning 0. When i tried calling API again, it displays correct result. So, only the players who are in game when remaining time becomes 0 might feel bad. Why does the rewarding doesn't happen instantly along with the leaderboard version change?? Need a way to solve this..
Answer by Sarah Zhang · Sep 30, 2020 at 01:50 AM
Since the rewarding prize table would be triggered after leaderboards are reset. And it's the batch operation. It will inevitably have a little delay.You can consider extending the timer, adding some automatic retry mechanisms to the clients to make sure the data updates on the clients.
Answer by Sarah Zhang · Sep 23, 2020 at 09:01 AM
Could you please provide the exact application scenario? Could you please descript that why the players in game would feel bad when remaining time becomes 0?
Hi @Sarah Zhang, thanks for the reply and sorry for being unclear. So, in my game i'm displaying remaining time for leaderboard reset and once it becomes 00:00:00 ((i.e) when reset happened), i'm calling GetUserInventory to get information on rewarded virtual currency for the player and it's showing 0 currency. If the player exits and restart the game, (i.e API gets called again), then it's able to get currency value properly..Not sure why it's happening..