Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by Vixxd · May 05, 2017 at 01:25 PM · google playgoogle play gamesapileaderboardscoreboard

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?

image

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Vixxd · May 09, 2017 at 11:48 AM

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

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

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Vixxd · May 09, 2017 at 11:46 AM 0
Share

Thanks @$$anonymous$$ukikaizoku - should have updated the original thread. I'm glad I linked the GitHub post!

avatar image Mukikaizoku Vixxd · May 10, 2017 at 03:56 AM 0
Share

Sure thing - it looks well linked up!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

102 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges