Get 'current rank' of the user based on 'last score' - Leaderboard service.

0 votes

Platform: Windows Phone 8

I'm using Leaderboard service APIs. I use to fetch the Rank of the user. This returns me the user's Rank according to highest score achieved by user amongst other highest scores.

What I'm looking for is getting the 'current rank' of user based on the last score submitted. For example, if user1's last score is 100, user2's last score is 50 and user3's last score is 25, and user3's highest score is 500, still user1 should be ranked 1 and user3 ranked 3!

How can I achieve this 'Live Ranking'?




asked Aug 1, 2014 in App42 Cloud API-BaaS by shishirg23 (31 points)

1 Answer

+1 vote
Best answer

You can maintain two leaderboard in this case. One leaderbaord for all the scores and another leadrboard which will only have last score. You can edit the score every time in last score leaderboard whenever score is submitted by user. This way you can maintain a leaderbaord which will only have last submitted score.

Here are the links that might be helpful in this case for more details.

Managing Leaderboard 

Edit Score of User

Let me know if it helps.



answered Aug 1, 2014 by ajay123 (899 points)
selected Aug 1, 2014 by shishirg23
Thanks works!
I also want to store Number of games played by user.

I'm using this:

I would like to get current number of games played. Since everytime I fetch data, a list will be fetched, how can I get last saved value or maximum count?
Size of the list would be maximum count game played by the user because every time you are saving the doc along with score.
I mean, maximum value from the list!
You can fetch the sorted result in descending order and fetch only single element while applying the query. See this
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on