Giter VIP home page Giter VIP logo

Comments (4)

tx350z avatar tx350z commented on June 4, 2024

I had the same problem. In my case, the cause was a missing permission for Google Drive - the save game functions need that permission. Go to Google API & Services console and add Google Drive permission.

from pgsgp.

GhosTheKaos3150 avatar GhosTheKaos3150 commented on June 4, 2024

If giving Google Drive permission is add it to my app on API Console, I already did this.

Google Drive API is set, and the SHA1 is the same as in Google Play Console in both game and API Console.

from pgsgp.

tx350z avatar tx350z commented on June 4, 2024

What call is returning the error code? Status code 4 from GPGS translates to "SIGN_IN_REQUIRED". Here is the Doc: https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes

Error code 4 means you have not successfully connected your app to GPGS. There are many "0-day" conditions you need to handle (and test thoroughly). For example, Google Play Games app may not be installed on the user's device, the user may not have a Play Games login, your game must be authorized by the user to connect to Play Games, the user may not have "auto-login" set in Play Games, etc. Generally these conditions can be handled by repeatedly calling the singleton.sign_in() method until you get a successful sign in.

Also be aware the singleton always attempts to use the most recent Play Games credentials. This works for most users. However, if a user is on a shared device that has multiple Play Games profiles, it doesn't work correctly. And it is almost impossible to force the singleton to use a login other than the one most recently used.

Hope this helps.

from pgsgp.

GhosTheKaos3150 avatar GhosTheKaos3150 commented on June 4, 2024

Actually, that helped a lot! The problem was two different accounts at my Play Games (I'm testing it before releasing). Thanks!

from pgsgp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.