Jump to content
Massimiliano S

Google Signin Firebase for Store doesn't work

Recommended Posts

 

Hello,

I've implemented Google authentication on my app using Firebase and the Kastri library.  
I've done all the configurations as per the GoogleSignin example project.  
On iOS, both in demo and on the Store, it works perfectly. On Android, it works correctly if I compile in development, but if I compile for the Store and upload it, the authentication returns a code 10.  
I've checked all the SHA-1 fingerprints for KeyStore.debug, development KeyStore, and the app in the Google Store at https://console.firebase.google.com/.  
I'm using the Client ID generated for the Web App (as per the example instructions) and not the Android ones (which just don't work).

Do you have any suggestions on what it could be?

Thanks

Massimiliano

Share this post


Link to post
1 hour ago, Massimiliano S said:

On iOS, both in demo and on the Store, it works perfectly

That's odd, since I was sure it was not working on iOS when I last touched it. Is this using version v8.15.0 of the Firebase iOS SDK? It might be failing with later versions.

Share this post


Link to post
1 hour ago, Dalija Prasnikar said:

Se utilizzi App Bundle e Play Store Signing, devi aggiungere l'impronta digitale SHA-1 dalla Google Play Console, poiché Google utilizzerà un certificato diverso per la firma rispetto a quelli presenti nei tuoi keystore.

 

Vedere:  https://developers.google.com/android/guides/client-auth

Hello  Dalija,

Yes I did it but it still works.

 

I started from the example in Kastri
I extracted the SHA1 from the Key Stores of the Debug App and the store of my application

I went to https://console.firebase.google.com/ and created the application.
I added the two SHAs plus Certificate of the app signing key, the SHA-1 Fingerprint taken from ttps://play.google.com/console

I downloaded the JSON and took the client_id with "client_type": 3
If I compile in Development it works if I compile for store no, it returns code 10

I tried to use the other Client IDs too but they don't work

 

1 hour ago, Dave Nottage said:

È strano, perché ero sicuro che non funzionasse su iOS quando l'ho toccato l'ultima volta. Sta usando la versione v8.15.0 del Firebase iOS SDK? Potrebbe non funzionare con le versioni successive.

Hello Dave,

I struggled a bit but it works.
It doesn't work with newer versions. What I did was start with v8.15.0, update Kastri to the latest version and add the missing files from a later version to FireBase.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×