Google Play Games Services - Wrong scores, Traffic mostly Redirection (3xx)
Hi, I have a Unity game with the Play Games Plugin for Unity installed. We have one leaderboard in the Google Play Games Services. In the game, we use this single leaderboard to show a
scoreboard in the game which pulls down 'friends' (UserScope.FriendsOnly)
scoreboard in the game which pulls down 'global' scores (UserScope.Global)
Our game (through numerous popups and Debug statements) is successfully saying we are posting the high score to the scoreboard when the game is over, but when we pull the scores data down it is inconsistent - sometimes old values show up, it is not always pulling down friends values.
When testing on device, and switching between signed in Google users on the smartphone, the game will pull down scores that were pulled down for the previous user (i.e. different friends).
We really have no idea what's going on and are having difficulty pinpointing the steps to replicate the issue.
Whenever we look at the leaderboards section on the google play services dashboard, the App says no scores are available, but we are pulling scores down regardless somehow.
I have no idea if this is a different problem or a red herring, but when looking at the Google Play Game Services API traffic, it's 76% 3xx redirection and only 23% success. 1. Why is this happening? 2. How do we stop the redirects? 3. Is this linked to the scores issue?
Thanks, Vicky
I have also posted this here: https://github.com/playgameservices/play-games-plugin-for-unity/issues/1727
EDIT: The solution was to change, in Google's own LeaderboardManager.cs, 'Types.DataSource.CACHE_OR_NETWORK' to 'NETWORK_ONLY'. This does not impact the redirection issue but explains the inconsistent score fetching. Please see here and here.
Answer by Mukikaizoku · May 07, 2017 at 08:36 PM
For people looking for a workaround and as @Vixxd refers in the link she provides, details on how to code a workaround are available:
https://github.com/playgameservices/play-games-plugin-for-unity/issues/1534
Thanks @$$anonymous$$ukikaizoku - should have updated the original thread. I'm glad I linked the GitHub post!
Your answer
Follow this Question
Related Questions
Project GPM data does not exist. Creating new object. 2 Answers
Leaderboard not working after releasing to play store 0 Answers
leader board could not working and its can'tpost the score ? 1 Answer
Google Play Services Daily Gold Leaderboard 0 Answers
error google Play Service when i import the cloudonce package 1 Answer