Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Games Services Leaderboard API, can't see other players' scores

I am developing an Android app in which I use the Google Play Games Services API. I have successfully implemented leaderboards in every aspect except I can't see the scores of other players, only my own currently signed-in player score is shown.

It acts as if my tester users have not shared their game activity with the the current user, but in fact they have, and this fact is visilble in their accounts. I have also confirmed that the current user shares the app with these other tester users. UPDATE: I can see the other scores using "All", but not in "Social". Still, why aren't scores available in "Social"?

I use this GoogleApiClient:

mGoogleApiClient = new GoogleApiClient.Builder(this)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)
                .addApi(Games.API).addScope(Games.SCOPE_GAMES)
                .build();

I can switch accounts, sign-in, submit scores, etc. for each account successfully, but I simply can't see the other tester accounts scores when I start the leaderboard activity.

Any ideas on where to look?

like image 547
aez Avatar asked Nov 06 '14 12:11

aez


1 Answers

Is your app and game services backend published or still in testing mode?

Taken from Google's docs:

"Social leaderboards will initially be empty until you publish the corresponding leaderboard by using the Google Play Developer Console"

https://developers.google.com/games/services/common/concepts/leaderboards

Another good read is: https://developers.google.com/games/services/common/concepts/leaderboardsAdvanced

like image 117
Thomas Avatar answered Oct 14 '22 09:10

Thomas