My calls to the client API GetLeaderboard() is returning an empty array:
{"code":200,"status":"OK","data":{"Leaderboard":[]}}
However, looking at the Game Manager, I can see that I have users (well, 1 user) with data for the key I requested.
I've checked the "Allow Client to Post Player Statistics" option under General settings.
The statistic I'm querying for is the same one that my user has data for. It's keyed under "score" and has a numeric value (currently 80).
What might I be doing wrong?
Further info for debugging:
Leaderboard request:
POST https://[APP_ID].playfabapi.com/Client/GetLeaderboard
Headers omitted, but has X-Authorization header (previously obtained)
Body: {"StatisticName":"score","StartPosition":0,"MaxResultsCount":10}
Response: As above
UpdateUserData request:
POST https://[APP_ID].playfabapi.com/Client/UpdateUserData
Body: {"Data":{"score":80},"Permission":"Public"}
Response:
{"code":200,"status":"OK","data":{"DataVersion":6}}