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
0
Question by general_pikachu · Feb 12, 2017 at 01:36 PM · gamegoogle play gamescloudprogress

save/load Data to Google Play games -authentication failed

Hello guys !

I m developing an android Game .I'm using a real device for testing. The game uses Google Games Services. I 've been able to sign in , show achievements & leaderboard, add score to leaderboard, unlock achievements. saved game is ON in the google play console I used this plugin https://github.com/playgameservices/play-games-plugin-for-unity when I tried to implement the cloud save , I added this code Strat() & the app crashed

 void Start ()
     {
     
         Debug.Log ("0");
         PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder ()
         .EnableSavedGames () //app didn't crash when I commented this
         .Build ();
         Debug.Log ("1");
         PlayGamesPlatform.InitializeInstance (config);
         Debug.Log ("3");
         PlayGamesPlatform.DebugLogEnabled = true;     
         Debug.Log ("4");
         PlayGamesPlatform.Activate ();
         Debug.Log ("5");
 
     }
 
     
     public void LogIn ()
     {
         Debug.Log ("6");
         if (!Social.localUser.authenticated) {
             Debug.Log ("7");
             Social.localUser.Authenticate ((bool success) => { //the authentication does not work
                 if (success) {
                     Debug.Log ("8");
                 } else {
                     Debug.Log ("9");
                 }
             });
             Debug.Log ("10");
         }
     }

I used this plugin to see the logs in my device https://www.assetstore.unity3d.com/en/#!/content/12047

here is the log if I used .EnableSavedGames ()

alt text

the log if I commented .EnableSavedGames ()

alt text

screenshot-2017-02-12-15-06-54.png (392.9 kB)
without-cloud-services.jpg (366.6 kB)
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 koprivajakub · Sep 02, 2020 at 08:36 PM

Were you able to figure this out? I am having similar problem. I was able to make it work via signing the application from Android Studio.

Configuration of the SHA-1 keystore fingerprint needs to be in place in Google Play console.

But I am not able to make it work via Unity Cloud Build nor direct build of APK from Unity.

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

123 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 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

The best overloaded method match for google play games 1 Answer

A lot of newbie problems 1 Answer

Unity Build Error Duplicate class,Unity Build Error duplicate class 2 Answers

Seeing slow performance on play-games-plugin-for-unity OpenWithAutomaticConflictResolution 1 Answer

Cloud build with google play games give me an error 0 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