Massimiliano S 1 Posted October 29 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
Dalija Prasnikar 1399 Posted October 29 If you are using App Bundles and Play Store Signing, then you need to add SHA-1 fingerprint from the Google Play Console as Google will use different certificate for signing from the ones in your keystores. See: https://developers.google.com/android/guides/client-auth Share this post Link to post
Dave Nottage 561 Posted October 29 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
Massimiliano S 1 Posted October 29 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