New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android gives 'ERROR: DEVELOPER_ERROR' when signing in #706
Comments
I have the same error ... |
. the same |
the same |
same here |
anyone ? started happening to me |
Hi! Is there any solution? |
Same here too... |
Same here... :( |
Same UPDATE: I was able to get it working by adding the debug key to the Firebase project. Was able to retrieve the debug SH1 key via |
I solved this problem following this steps https://stackoverflow.com/questions/47437678/why-do-i-get-com-google-android-gms-common-api-apiexception-10 |
Did you both add new credentials to API Console and add your key to your Firebase project? I'm getting "duplicate fingerprint" if I do both.. If i skip adding cred to API console I'm getting error message: "Must specity an idToken och an accessToken". I'm using GoogleSignIn.configure() This is my code:
|
Yeap, I added the debug key sha1 in my project, but the accessToken not return in the signIn method like the doc https://github.com/react-native-community/react-native-google-signin#3-userinfo, you need get the token with method getTokens https://github.com/react-native-community/react-native-google-signin#gettokens. Sorry my bad english... :D |
I wanted to add my 2 cents. I thought I had everything setup correctly, then I realized I had a file called debug.keystore in my android/app folder. I used the command keytool -list -v -keystore C:\Users\reidk\Documents\Git\Pr ojectR\android\app\debug.keystore -alias androiddebugkey -storepass android -keypass android to read the sha1 key from the react-native debug keystore. Then I added that to firebase, and now everything works great! |
Is necessary to generate the Keystore file through command line, I had the same issue with a published app, I generated the Keystore with Android Studio, so I contacted with Google support and they help me and I generate new Keystore file with the following tutorial: https://facebook.github.io/react-native/docs/signed-apk-android, they update the keystore of my published app and after three days the DEVELOPER ERROR is gone. |
I was also facing the same issue. My debug keystore's SHA1 was not working. I solved it by adding following code in android/app/build.gradle signingConfigs {
|
hello, please see this doc improvement, it should help. https://github.com/react-native-community/react-native-google-signin/pull/737/files if this does not help, please provide careful repro steps. Thanks. |
for poor souls like me who used the android client id, you have to add your web client id. not android client Id.its quite obvious people might think they have to add the android client id since they are building it for android. |
@akashmohan got it.. just get the Web client (auto created by Google Service) ID from google console -> credentials |
@reidkersey thank you very much, I was trying keytool -exportcert -keystore ~/.android/debug.keystore -list -v which ofcourse was giving me a SHA1 key but it was not working , after your comment I also look closer into my project/android/app folder and found that there is a debug.keystore key too (whose default password is "android" , incase some need to know ) so I tried keytool -exportcert -keystore app/debug.keystore -list -v running the command under my android folder and the key I got ,worked really well. thank. you. |
Hi there. |
I fixed it by entering correct SHA-1 in firebase console. Problem was I was using following command for generating SHA-1 from my project directory
Here path for the debug.keystore is in ~/.android folder which is different, my keystore was inside /android/app, So I followed this new path in command, which was in my project directory
Then (1) copied the SHA-1, and (2) enter it in project of firebase console then (3) download the config file again and replace it in android/app folder then (4) remove the build and install again, it worked! EDIT: For some reasons, on a few computer devices you also have to perform these steps. If you get error like ... Only one command is allowed: both -exportcert and -list were specified. |
I followed @mitjnextt steps and mine is now working. The only thing that I didn't do was to download the config file again, it still worked...not sure if that will bite me somewhere else but thanks a lot for the tip. |
I spend an week try solve this problem with my android app, thanks a lot! <3 |
We are having issues with this still. We are using the web client id, not the android client id. In development Google Sign In works. In release, Google Sign In does not work. Is there anything else that it could be? Edit: Both of our SHA-1 keys (from debug keystore and upload keystore) are in our firebase console. |
If you uploaded your app to Google Play you will need to add the SHA-1 key from GooglePlay to your firebase console too? Go to your https://play.google.com/console/developers then select your app then go to Sign Certificate App. |
@julitroalves In my Google Play Console, Under Setup -> App Signing, I see 2 different key certificates. 1: App Signing Key Certificate My Upload Key cert matches what I have in my Firebase console. Yet the App Signing Key Cert doesn't match anything I have in FB. Could this be a potential issue as to why Google Sign In isn't working in Production? |
When a I run this command |
I am getting this error in play store and not in debug mode. I have also copied SHA to firebase console :( |
Hey @gamingumar, Make sure you add SHA which is generated by the keystore you have used to upload the apk. |
@mitjnextt I resolved this issue, it was caused by wrong SHA. The reason was the confusion between firebase and google cloud project. They were 2 different projects in google cloud. I found out that firebase creates google cloud project by default. |
+1 |
sometimes unprepared
|
I'm using Firebase. The solution for me was to copy the Also, be sure which key is being used to sign your dev/test app and add your debug key SHA1 to the Firebase console. Use the |
I'm not using firebase and this worked for me! This SHA1 is different from the ones generated by the keytool with the debug.keystore files on user/.android and and myapp/android/app, neither of them were working. I just created a new credential on the same app in the google console, didn't even need to delete the credentials from the old debug.keystore. Thanks! |
PRO TIP: Even if you think you have the correct |
For anyone banging their heads on this in the future. I had this issue in production after deploying my app to the Play Store. The problem happens because i'm using the managed app signing service so the Play Console actually manages the App Signing Keys and therefore your app would actually have a different signing key when deployed on the Play store.. To find that key you must go to the Play Developer Console under |
I solved it GoogleSignin.configure({ i hope it will work for all . Thanks |
For me, it wasn't working until I provided offlineAccess:true |
OFFICIAL SOLUTION IS THIS:
Copy the SHA1 from the output |
same my isssue, because SHA1 from here "keytool -list -v -alias aliasName -keystore app/keystore.jks -storepass passWordStore -keypass passWordKeyPass". |
Yeah, the same issue I had. i was checking the release build and it was working fine but after pushing it to play store it was not working. But it's working now. |
One more step to try (that was my case of DEVELOPER_ERROR) is to check if you definitely typed correctly your package name that locates at <your_proj>\android\app\src\main\AndroidManifest.xml in google cloud field for android project. Make sure that typed package name starts exactly with 'com.' prefix. It is very stupid but while fighting with it I always typed my project name without this prefix so this throwed an error. |
I have tried all above suggestion but nothing work at all :( |
1. Remove the app from the google play store
2. Generate an new APK to upload to google play
3. Voila, you will have the new SHA-1 that is on your app in the google
play store.
…On Sat, 24 Dec 2022 at 15:50, Lê Vũ Huy ***@***.***> wrote:
I have tried all above suggestion but nothing work at all :(
—
Reply to this email directly, view it on GitHub
<#706 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGR3T3P3KST6SRLQXET7NDWO4ESFANCNFSM4IMFTPEA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
--
With regards
Cyrus_Zei
[ *Developer* + *Designer* = *Unicorn*]
|
Found my problem: |
Yes, there are two SHA-1 keys and you can enter this command and you can
see the SHA-1 key
keytool -list -v -keystore ./android/app/debug.keystore -alias
androiddebugkey -storepass android -keypass android
On Sun, 25 Dec 2022 at 06:12, Lê Vũ Huy ***@***.***> wrote:
Found my problem:
In my folder android/app there is a debug.keystore file, but I run keytool
command to get SHA1 with ~/.android/debug.keystore file.
Rerun with correct keystore file and everything will be fine.
—
Reply to this email directly, view it on GitHub
<#706 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGR3T6VMLQASTGDQZG2NVTWO7JTLANCNFSM4IMFTPEA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
--
With regards
Cyrus_Zei
[ *Developer* + *Designer* = *Unicorn*]
|
tricky steps for android
sudo keytool -genkey -v -keystore my-upload-key.keystore \
-storepass android -alias androiddebugkey -keypass android \
-keyalg RSA -keysize 2048 -validity 100000
-dname "CN=serhii, OU=debug, O=private, L=home, ST=0, C=UA"
|
I spent more time than I'd care to admit on this, so writing down what I found, in the hope that it'll be helpful to someone.
GoogleSignin.configure({
webClientId: YOUR_WEB_CLIENT_ID,
offlineAccess: true,
}); What I found:
|
In addition to this, I changed the third one to the |
+1 - After a long time I realised that it HAS to be the SHA1, not the SHA256 |
@apalm thank you! This is the final solution or those who are not using firebase and are using EAS managed credentials |
Also, people, don't forget to update the google-service.json (download the new one if you updated the SHA-1 in the Firebase). 😄 |
It doesnt make sense to me that Web application client ID worked for logging in from my Samsung Gakaxy Android phone. I got the idToken, |
For those using eas-build with a development client, in my case, eas inserts different signing credentials during the build process. In other words, it is not using the SHA1 specified in the google-services.json file. To make the google signing work in development, I had to add the SHA-1 Certificate Fingerprint listed in the Expo.dev console, under "Project Settings" > "Credentials" > "Android Keystore", to my Firebase project (which also adds it to Google Cloud API). I personally can't remember ever uploading credentials to Expo, but it could be the case. If they're autogenerated, I can imagine a lot more developers must face the same issue which is why I'm sharing this. |
Non-firebase users that let Google sign their app: Under the Google Cloud Console > APIs & Services > Credentials > Client ID for Android, set your SHA-1 to the App signing key certificate found in the Play Store Console > Setup > App signing. You'll know it works because |
I am using an Expo managed project, so i don't have direct access to the android keystore in the same way that i would in a bare react native project (in other words I can't run |
When signing in using
await GoogleSignin.signIn();
It opens the dialog, I sign in but gives the
'ERROR: DEVELOPER_ERROR'
Steps to Reproduce
calls await GoogleSignin.signIn()
Expected Behavior
Actual Behavior
'ERROR: DEVELOPER_ERROR'
Environment
The text was updated successfully, but these errors were encountered: