Comments (4)
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.
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.
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.
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)
- Error 12501
- Error 4 when sign in with app on production HOT 1
- Need an update for 3.2.4 HOT 5
- Unable to get the module to work for Godot-3.2.2. HOT 1
- [Feature Request]Getting leaderboard data for internal leaderboard
- How to retrieve idToken on sign_in function
- account_id parameter in _on_sign_in_success() always null and does not print HOT 2
- Stuck forever after tapping on account to sign in if using initWithSavedGames instead of just init HOT 5
- [CAUSED BY DEPRECATED API] Only works with default configuration and Class not found when unmarshalling: com.google.android.gms.auth.api.signin.internal.SignInConfiguration HOT 2
- fun isSignedIn(): Boolean .. can't react on this with c# HOT 1
- 2 crashes: com.google.android.gms.tasks.RuntimeExecutionException and io.cgisca.godot.gpgs.accountinfo.PlayerInfoController$fetchPlayerInfo$1.onComplete
- Nonexistent function 'init' in base 'JNISingleton'. HOT 7
- Godot cannot be cast to android.app.Activity HOT 7
- godot didn't work in 3.3.2
- How can I get this to work on 3.3.2?
- Fatal exception on Godot 3.3.2 HOT 1
- Update to 3.4.2 HOT 1
- how to use this in flutter application
- play_games_services.signIn() causes a crash
- PGSGP: How works backend token verification?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgsgp.