C++ Question

How to implement top 10 leaderboard using Google Play Services C++

We are developing a game with a top-10 leaderboard for Android and iOS devices.

The game is written on C++ using cocos2d-x.

I have found methods to fetch current user's score, but no any method to fetch other users' score, or score lists.

Is it possible to fetch score for a list of users with Google Play Services?

Answer Source

It can be done using ScorePage.

ScorePage is a single data structure which allows you to access score data. Data include Leaderboard id, start, timespan, collection, previous score-page token, next score-page token, and the vector of all score entries.

Methods to fetch ScorePage in LeaderboardManager:

void FetchScorePage(...);