Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by NeoGeoDK · Jun 19, 2015 at 07:58 AM · google play games

Creating custom Leaderboard using Google Play Games plugin for Unity

I am trying to create a custom Leaderboard, instead of just showing the Google Play one. The authentication used in the Google Play Games plugin for Unity works when I only use the standard leaderboard from Google. What I am trying, is to use the Google Web API (https://developers.google.com/games/services/web/api/scores/list) to get the values I need. I have used the WWW class in Unity to try to achieve this. The WWW class works for GET requests on www.google.com for example, but when I use it on the google Web API url, it returns a weird error. If I run my program in the editor, I get the expected 401 error. But when I run the program on my Android device, I get "Java.IO.FileNotFoundException" instead. I have tried the following URL's

https://www.googleapis.com/games/v1/leaderboards/leaderboardId/scores/collection https://www.googleapis.com/games/v1/players/playerId/leaderboards/leaderboardId/scores/timeSpan https://www.googleapis.com/games/v1/leaderboards/leaderboardId/window/collection

substituting "leaderboardId", "playerId", "timeSpan" and "collection" with the actual values. All these calls return the "Java.IO.FileNotFoundException".

I am guessing it has something to do with authentication, but I am unsure on what exactly is happening.

I hope I've explained the issue well enough, otherwise please feel free to ask for a more detailed explanation.

Thank you.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by nilesh410451 · Aug 07, 2017 at 01:41 PM

we finally got success for adding custom leaderboard in our game Up : Adventure time https://play.google.com/store/apps/details?id=com.aaryavarta.up

but it is showing limited number of users from global leaderboard. we have now more than 5000 users but when try to fetch data for 20 users its showing only 4-5 users.

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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

When I upload APK to the Google Play Store in internal tests, I only get the Target SDK Version not the Min SDK Version 1 Answer

Google Play Services Plugin Save/Load 0 Answers

Google Account Variable 0 Answers

Google Play Game Services Sign In Problem 0 Answers

Unknown type name error in Xcode when running Unity Cardboard-Enabled game 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