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 MapuHoB · May 09, 2015 at 03:22 PM · google play games

Authentication problem

         private void Awake()
         {
             PlayGamesPlatform.DebugLogEnabled = true;
             PlayGamesPlatform.Activate(); 
         }
 
         
         private void Start()
         {
             Social.localUser.Authenticate(success => Debug.Log(success));
 
             var config =
                 new PlayGamesClientConfiguration.Builder().Build();
             PlayGamesPlatform.InitializeInstance(config);
             //PlayGamesPlatform.Instance.Authenticate(success => Debug.Log(success));
 
         }
 
         private void OnClick()
         {
             Social.ReportScore(12345, "CgkI9IGIn-kSEAIQCQ", success =>
             {
                 // handle success or failure
             });
 
             PlayGamesPlatform.Instance.ShowLeaderboardUI("CgkI9IGIn-kSEAIQCQ");
         }
     }
 }

  1. ERROR: ReportScore can only be called after authentication.

  2. ERROR: ShowLeaderboardUI can only be called after authentication.

Update1: It might be because of Soomla's integration, not sure, just an assumption, cause already saw a few posts having the same problem.

Update2: Linked question which may help you determine what I'm doing wrong.

What am I forgetting?

If you're not sure what could the problem be, please suggest actions which I can take in order to determine what the problem is on comments.

Comment
Add comment · Show 6
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 Basen · May 09, 2015 at 03:50 PM 0
Share

Check if authentication is successful, otherwise waitforxseconds and try again?

avatar image MapuHoB · May 09, 2015 at 05:14 PM 0
Share

Okay, just one problem. I see neither true nor false from the authentication log, so which means that it doesn't even go in there.

avatar image FWCorey · May 09, 2015 at 06:31 PM 0
Share

Is PlayGamesPlatform set as the current Social.Active before Authenticating??

avatar image MapuHoB · May 10, 2015 at 02:17 AM 0
Share

@FWCorey not exactly sure what you're asking me, could you rephrase the question please?

avatar image FWCorey · May 10, 2015 at 04:01 AM 0
Share

“Social.Active can be used to target a specific social platform implementation, but by default GameCenter is used on iOS. All other platforms default to the Local implementation which can be used for testing. See Social API Reference $$anonymous$$anual for an overview.” from the docs for the Social class.

You may need to wait until after PlaygamesPlatform.InitializeInstance() to authenticate the user.

Show more comments

1 Reply

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

Answer by MapuHoB · May 11, 2015 at 04:34 AM

SUCCESS!

Check out the answers to my other two questions. They apply to this one as well. I Hope this helps you if you stumble upon the same problem!

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

20 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

Related Questions

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

Help about Google play realtime multiplayer 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