• 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 Atenrev · Jul 29, 2019 at 05:07 PM · save datagoogle play gamesdrive

Problem with EnableSavesGames using GooglePlayGames plugin

Hello, I'm trying to implement the google play games plugin feature to save data but I can't make it work. The user won't log in and I'm getting t$$anonymous$$s error:

Cannot use snapshots without enabling the 'Saved Game' feature in the Play console

The user can log in if I remove the ".EnableSavedGames()".

I've been searc$$anonymous$$ng over the internet but I haven't found any clue of how to solve t$$anonymous$$s problem.

I'm initializing the platform the way the documentation says:

 void Start()
     {
         if (Instance == null)
         {
             Instance = t$$anonymous$$s;
 
             LoadLocal();
 
             PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
                 .EnableSavedGames()
                 .Build();
             PlayGamesPlatform.InitializeInstance(config);
             PlayGamesPlatform.DebugLogEnabled = true;
             PlayGamesPlatform.Activate();
 
             Social.localUser.Authenticate((bool success) => {
                 if (success)
                 {
                     Debug.Log("You've successfully logged in");
                     LoadData();
                 }
                 else
                 {
                     SceneManager.LoadScene("Menu");
                 }
             });
         }
     }

The log looks like t$$anonymous$$s

 07-29 18:56:28.050 8063-8166/? E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
 07-29 18:56:29.924 8063-8199/? E/GamesNativeSDK: Exception in com/google/android/gms/games/snapshot/Snapshots.load: java.lang.IllegalStateException: Cannot use snapshots without enabling the 'Saved Game' feature in the Play console.
 07-29 18:56:30.463 2664-2664/? E/ActivityThread: Service com.google.android.gms.games.c$$anonymous$$mera.GamesAsyncServiceProxy has leaked ServiceConnection epp@97afc25 that was originally bound here
     android.app.ServiceConnectionLeaked: Service com.google.android.gms.games.c$$anonymous$$mera.GamesAsyncServiceProxy has leaked ServiceConnection epp@97afc25 that was originally bound here
         at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1349)
         at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:1244)
         at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1488)
         at android.app.ContextImpl.bindService(ContextImpl.java:1460)
         at android.content.ContextWrapper.bindService(ContextWrapper.java:646)
         at android.content.ContextWrapper.bindService(ContextWrapper.java:646)
         at android.content.ContextWrapper.bindService(ContextWrapper.java:646)
         at cnt.a(:com.google.android.play.games.services@110770040@2019.06.11077 (257270202.257270202-000400):69)
         at cnt.a(:com.google.android.play.games.services@110770040@2019.06.11077 (257270202.257270202-000400):62)
         at epm.a(:com.google.android.play.games.services@110770040@2019.06.11077 (257270202.257270202-000400):7)
         at bvz.a(:com.google.android.play.games.services@110770040@2019.06.11077 (257270202.257270202-000400):6)
         at bvy.run(:com.google.android.play.games.services@110770040@2019.06.11077 (257270202.257270202-000400):1)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
         at java.lang.Thread.run(Thread.java:760)
   

Obviously, the Saved Games option is enabled in the play console and it says that the google drive api is working too.

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

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

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

Simple solution for saving and loading bytes in Google Play Games 0 Answers

Save external files into game 0 Answers

Save Terrain not working 0 Answers

FixedUpdate Crash when try to save prefab in runtime. 0 Answers

Inventory System with Randomly Generated Loot 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