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 /
avatar image
3
Question by keox · Jan 23, 2016 at 08:50 PM · c#iossocialgamecenterleaderboards

Did Social.LoadUsers() stop working?

Social.LoadUsers() used to work for me, but now the callback doesn't even get called. It used to work for me previously but now nothing happens. I'm using Unity3d 5.3.1 and Xcode 7.2. I know the function gets called, the local user is logged into GameCenter and the userID array contains userIDs.

The relevant code:

 if (userIDs == null || userIDs.Length != scores.Length) {
     userIDs = new string[scores.Length];
 }

 for (int i = 0; i < scores.Length; i++) {
     userIDs[i] = scores[i].userID;
 }

 Debug.Log ("request user names");
 Debug.Log (Social.localUser.authenticated);

 Social.LoadUsers(userIDs, users => {
     Debug.Log(users.Length);
     Debug.Log(scores.Length);

     for (var i = 0; i < users.Length; i++) {
         Debug.Log(users[i].userName);
     }

     if (users.Length == scores.Length) {

         Debug.Log("!! sending scores out " + scores.Length.ToString());

         if (request.function != null) {
             request.function (scores, users, request.chunk, request.from);
         }
     }
 });

Running this outputs the following into the Xcode console:

  1. userIds ("G:" and some numbers)

  2. "request user names"

  3. "True"

Comment
Add comment · Show 3
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 JTJam · Jan 25, 2016 at 04:43 AM 0
Share

I'm having the same issue here, not working anymore on iOS since I upgraded to 5.3.1 :( The callback you provide to Social.LoadUsers is simply... not called!

Hope this get fixed quickly!

avatar image manny003 JTJam · Feb 04, 2016 at 02:07 PM 0
Share

This is an issue for me as well. Finally got things to build successfully after upgrading from 5.2.4f1 and, damn it, Social.LoadUsers is not working.

Using Unity 5.3.2p2.

avatar image sk8er8921 · Aug 09, 2016 at 04:33 AM 0
Share

Same issue, callback function not called, very frustrating.

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by arkon · Feb 19, 2016 at 01:13 PM

Not working for me either on 5.3.2.P3 I was just about to release the game too and it's just stopped me being able to. Anyone know if unity are even aware of it as a problem?

Comment
Add comment · Show 1 · 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 majman · Feb 19, 2016 at 02:28 PM 0
Share

Haven't seen any acknowledgement from unity $$anonymous$$m about it either, but there's a forum thread over here for those following this issue: http://forum.unity3d.com/threads/no-callback-on-social-loadusers-for-ios-5-3-1-5-4-0b2.379867/

Probably wouldn't hurt to add a comment there as well.

avatar image
0

Answer by EpicWolffe · Oct 30, 2020 at 06:09 PM

Ran into the same problem! It was working, then I messed around with the packages and a few other things in the developer console. I couldn't tell you what broke it... BUT

What ended up finally giving me data again in Loadusers was by calling it from PlayGamesPlatform.Instance.LoadUsers... like so. It was called inline from within the Loadscores method.

   PlayGamesPlatform.Instance.LoadUsers(userIds.ToArray(), (users) => {
                            Debug.Log(users.length); //will give you correct count
                        });
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

9 People are following this question.

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

Related Questions

Game Center login issue 0 Answers

Social Api causing crashes 2 Answers

When will Social.ReportScore() fail? 0 Answers

GameCenterPlatform - Load leaderboards with custom parameters 1 Answer

How can I show a specific leaderboard in iOS GameCenter? 2 Answers


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