FAQ / Troubleshooting
Android
Login does not work when downloading from the Play Store.
See the next paragraph.
DEVELOPER_ERROR
or code: 10
or Developer console is not set up correctly
error message
This is always (!always!) a configuration mismatch between your app and the server-side setup (in Firebase or Google Cloud console).
Follow these pointers:
- Make sure that your SHA-1 (NOT SHA-256!) certificate fingerprints and Android package name you entered in Firebase Console / Google Cloud Console are correct.
- Add the SHA-1 from the output of this command to your Firebase / Google Cloud Console. You should be able to recognize the SHA-1 - do not add a hash if you're not sure of its origin.
- Follow the setup guide and perform its steps once again.
- Search the issue tracker for old reports of the error.
- If you're passing
webClientId
in the configuration object toGoogleSignin.configure()
, make sure it's correct and that it is of type web (NOT Android!). You can get yourwebClientId
from Google Developer Console. It is listed under "OAuth 2.0 client IDs". - If you are using Firebase, you need to add Google as a Sign-in method in Firebase itself (Build -> Authentication -> Sign-in method). If you have already created an app, you will be prompted for fingerprints and then you will get a new
google-services.json
which you need to use in your app instead of the old one.
Login does not work when using Internal App Sharing.
If you get a DEVELOPER_ERROR
when using Internal App Sharing, it is because Google resigns your application with its own key.
"A non-recoverable sign in failure occurred"
See this comment. Or this SO question.
Changing play-services-auth
version
See "Choose Dependency versions" above.
Package name !== application id
When adding a new oauth client, google asks you to add your package name. In some cases your package name is not equal to your application id. Check if your package name in the AndroidManifest.xml
is the same as your application/bundle id. Find your application id in the play console or android/app/build.gradle
. The format looks like com.yourapp.id
.
iOS
On iOS the app crashes when tapping Sign In button
Along with "Your app is missing support for the following URL schemes" error in console.
Your Url Schemes
configuration is incorrect.
If you use Expo, make sure that the config plugin is configured correctly.
In vanilla React Native projects, add URL type like this.