0 votes

I'm trying to implement Google Play Game Services in my game using that plugin: https://github.com/cgisca/PGSGP

After configure de Google API and certificates the implementation works fine in my phone when i install the app by .apk (Without debug) but when i execute by google play instalation returns the error 4 when sign in.

Someone have experience with this? Some sugestion?

in Engine by (171 points)

1 Answer

0 votes
Best answer

Solved!

I've used the SHA1 code of the release keystore to link the app with google API, but the correct would be use the key that google play generated to app.

by (171 points)

Same error...but i dont understand your solution...Please can you describe step by step what you did? I have created the SHA1 of the keystore for release creating a new credential but I cannot connect either

I had the same problem as EmanuelOzorio, let me elaborate what he means.
This solution works in the following case:
If you install the apk directly, you can sign in.
If you upload to the console and download from the store, it gives error 4.
Probably you let google manage your app signing.
In that case, in the OAuth credentials, you should use the SHA-1 fingerprint from the key that google uses to sign your app, and not from your own key.
This SHA-1 fingerprint can be found in the google play console, under settings > app integrity.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.