google-signin: DEVELOPER_ERROR on Android production build
Greetings.
We’ve recently upgraded our expo project SDK from 49 to 51. Part of the upgrade involved bumping the @react-native-google-signin package to 12.2.1.
The project is currently leveraging google sign-in with firebase, and so is configured with the relevant google-services.json and a GoogleService-Info.plist.
Before the upgrade, google signin was working as expected. However, post upgrade we began receiving the DEVELOPER_ERROR error code on our Android production builds (notably, our dev client builds are still working as expected).
It’s probably noteworthy to mention that before the upgrade the Android firebase project for the application didn’t have any SHA-1 fingerprints associated with it (but worked). Post upgrade, I aligned the implementation with approach outlined on the FAQ page by adding the SHA-1 fingerprints for:
- The expo dev client build,
- The expo production build,
- The upload signing certificate (from the Google Play Store)
I’ve also confirmed that the application is calling configure with the correct webClientId.
I created a minimal reproduction in a new expo application and I’m seeing the same behaviour for android production builds.
I’ve read through and followed the steps on the FAQ page a few times to no avail, so I’m wondering if anyone else is experiencing the same issue? Any tips/pointers are appreciated
Relevant versions:
react-native: 0.74.3
expo: ~51.0.24
@react-native-google-signin/google-signin: ^12.2.1,
Android: Tested on 13 and 14
Gradle: 8.6
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 22
The error occurs when I build the application in .aab otherwise in apk everything works perfectly.
This worked for me. I was facing this from long back. Thanks man 😃
Can anyone help? I’m testing on development but keeps getting DEVELOPER_ERROR, all credentials are cross checked and correct.
Seems like its still happening?
Works fine in debug or release APK, but fails when downloading an “Internal Testing” build from play store. Ive updated to the newest 17.0.1 build just to be sure. I have copied the SHA-1 fingerprints into Firebase from the AppSettings (playstore) and ./gradlew signingReport (local).
Calling: await GoogleOneTapSignIn.signIn() I get {“credential”:null, “type”:“noSavedCredentialFound”} I get the same thing when I then call: await GoogleOneTapSignIn.createAccount();
and finally when I call: await GoogleOneTapSignIn.presentExplicitSignIn(); I get “Developer console is not set up correctly” or I get {“data”:null, “type”:“cancelled”}
Even adding SHA 1 key from App signing key in firebase and adding the credentials in GCP, the
DEVELOPER_ERRORerror continues for me. In the client build and apk version it works normally but the version on google play continues with the error. Does anyone else have an alternative that can be done?thanks. It work
TL:DR: Don’t upload AABs to BrowserStack because the app’s SHA-1 fingerprint won’t be the same.
Hey folks, glad to see that other people have been able to resolve their issues - thanks @Supra-HarshitPadalia!
It seems that issue that was plaguing us wasn’t actually project or plugin configuration but was related to the way it was being tested. We recently shifted to testing on BrowserStack’s device cloud. To save time when testing on Android we uploaded our AAB file into BrowserStack. We’ve come to realise that it’s the way BrowserStack installs the AAB on the device that is causing our particular issue. Because the AAB can’t be installed directly on the Android device, BrowserStack must be internally transforming the AAB into an APK (changing it’s SHA-1 fingerprint).
Testing the same app via Play Store’s internal test track works as expected with the existing OAuth Clients setup in the google cloud console (and should hypothetically also work through Firebase).
Dude I love you! I keep following other people saying to use the SHA1 from the
debug.keystoreor fromeas credentials. After hours this finally fixed it!