android - GooglePlay Game Service onLeaderboardScoresLoaded always has empty ScoreBuffer -
i using googleplay game service adding leaderboard in game (actually, several leaderboards). signing in googleplaygameservices works, submitting score given leaderboard-id. checked using onscoresubmittedlistener. result ok, score there.
when trying retrieve top scores given id using 'loadtopscores', onleaderboardscoresloadedlistener gets called status_ok, 1 entry in leaderboardbuffer (i checked entry, exact same leaderboard-id submitted score to) , alway 0 entries in leaderboardscorebuffer. not find solution problem. 1 thing seems odd in leaderboardbuffer entry, player rank set -1. couldn't find out means.
thanks in advance insights on problem =)
i managed find problem myself =) rather easy. since services utilize one's google+ account, have set permissions properly. under "settings" -> "accounts" -> "google" -> "google+" -> "apps google sign-in" entry game. there had allow uploading of scores public. once did works fine me.
Comments
Post a Comment