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 - Updated to RN 61 now getting DEVELOPER ERROR #823
Comments
I am having the exact same issue, doesn't work on device or emulator. Working great on iOS! |
hello, there was a new keystore file added, see https://react-native-community.github.io/upgrade-helper/?from=0.60.6&to=0.61.5 maybe that is the cause. If this does not help, please add a runnable repro, otherwise this is not actionable. Thanks! |
@vonovak Maybe you can clarify this a little because the docs + issues I read seem to contradict sometimes. So I am not using firebase so I use credentials directly. From what I can read in the docs:
I am pretty sure I get this error because something is wrong in the setup, but I tried everything from the docs. |
hello and thanks for the comment; I personally use firebase and so I don't have hands-on experience with other ways of consuming the library. Please, if you see there is any kind of problem with the docs, be so kind and contribute a PR, it'll be greatly appreciated, thank you! |
@klaaz0r did you find out the issue ? what's problem for setup ? I am getting the same errors. |
I just inherited a code base built with react-native 0.61.4 and clean installed @react-native-community/google-signin today. I too am receiving a wonderfully opaque "DEVELOPER_ERROR" and I have followed the steps in the FAQ to make sure that I have the appropriate SHA-1 fingerprint in my firebase project settings. I am configuring google-signin with the webClientId found in the firebase console under Google authentication. |
@krewllobster awesome, attach fingerprint to firebase console, replace new google service json file and |
@pasha-it I switched to firebase because I was using push notifications anyway. All you need todo is add all the finger prints (including debug, if you use that) and I should work. Is |
@klaaz0r I am not sure. |
I changed |
I have tried all of the above and am still pulling the DEVELOPER_ERROR. Is there a description anywhere of what this actually means? |
@krewllobster not in any detailed satisfying way; but in general it means that you aren't authenticating with the service properly; which can be a variety of things:
Any of these things not being correct can lead to "DEVELOPER ERROR" In my case, I needed to download and include an updated version of my google-services.json AFTER adding the new debug key finger print to the firebase console. |
@allthetime thanks for responding! Is it possible for an old fingerprint (from a different dev in a former time) could be conflicting? I think there are three SHA-1 fingerprints in the firebase console. I added 2, one is my debug SHA-1 (found via instructions in Android walkthrough) and the other is my release key. I know it works with my release key (finally!) but it still seems to not work in debug. Should I delete the old SHA-1 and re-download google-services.json? Edit: Turns out that I had not explored the signing report quite enough and there was one more SHA-1 hash being used in debug mode that hadn't been added to the firebase project settings. If you're reading this thread because you're having this issue, double check to see if you are using any custom keys. It turns out that my app was using a custom debug key that was different to the default android debug key as it was stored in the android folder of the project. In the signing report I needed to go all the way back up to the top to see the debug mode SHA-1 hash for the actual app intent, and that's when I realized that there was an extra SHA-1. I am not an android dev, so I had never used the signing report before! Thanks for the input in this thread everyone. |
@krewllobster finger prints don't conflict, but they will pollute your credentials making it a little more confusing to figure things like this out! I had the same thing going on with stale fingerprints being represented in my google-services.json. |
I'm also having this issue and it used to work before. I've tried creating a new Android app on the same Firebase project, triple checked every SHA-1 key, new debug keystore and new release keystore - Still no luck and getting the annoying DEVELOPER ERROR. |
I have been trying to debug this for many hours and finally I resolve it by this: I don't know why the webClientId from firebase does not work but from the Google Console API works. Perhaps someone can shed some light and also update it in the README? |
If you have key store file at this location |
I got it to work you just have to add the webClientId from firebase
|
Looking through the issues and comments again, I think that the issue with webClientId is that if you are using react-native-firebase, then you need to get the webClientId from firebase. But if you are not using that, you should get the webClientId from Google API console as per #794 (comment) I am not using react-native-firebase so the webClientId as per the README does not work for me. My webClientId from Google API works. |
In my case, I used second method to generate configuration file, it was generated as credentials.json so i renamed it to google-services.json. then i copied the debug.keystore file from |
Same DEVELOPER ERROR.. |
I have the same issue, while Generating the release APK. |
My solution separate iOS and android platform.
|
First, you have to be aware that in this issue, we're talking about error when updating RN to 0.61 (or using RN 0.61 or above perhaps). As @vonovak mentioned, there was a new debug.keystore https://react-native-community.github.io/upgrade-helper/?from=0.60.6&to=0.61.5. In my case, previously I used RN v0.59.10 with react-native-google-signin v2.0.0. I generated keystore using this reference Now I use RN 0.61.5 with react-native-community/google-signin v4.0.0. I solved it with new fingerprint, using new debug.keystore in android/app/debug.keystore, register the SHA to firebase console, download new google-services.json and replace old one. Also I didn't change any configuration and use webClientId from console.cloud => apis => credentials. |
Be sure to check in the Firebase Console, under "Authentication" -> "Sign-in methods" that Google is enabled, I found it disabled, I didn't even know that there was that option |
If anyone is still having issues, I was able to find another source of trouble in this whole process. First, here was our setup: Everything worked swimmingly with debug builds (we generated SHA1 hashes of our local dev keystore) and everything worked great with release APKs that we were installing directly to device (we generated a SHA1 hash of our production key to get this to work). However, when generating an AAB and uploading to the Beta channel and trying this version, we would get the nefarious The fix? I went into the PlayStore console and found a tab named "App Signing" under "Release management" There, I found yet another SHA1 which I then put into our Google Console account. After that, everything worked. My theory? The PlayStore must be doing something when it creates a thinned app (not sure what it's called in Android land) that requires it to sign with some new certificates, behind the scenes. This SHA1 in the PlayStore console must correspond to these keys and was likely the missing piece. |
@staufman This is because you are using .aab to publish your Android app in which the Play store will re-sign your app when pushed to production/testing track. Hence, you are required to use the App Signing SHA1 fingerprint which is the cert of Play store. Please note that internal testing uses another set of signing by Play store and as such, you need to upload that SHA1 fingerprint as well if you are using the internal testing track of Play store. Refer to https://github.com/react-native-community/google-signin/blob/master/docs/android-guide.md#faq--troubleshooting for more explanation. |
resolved by:- react-native : 0.61.5 Thanks to all those who have commented for this issue. |
I have both debug and release keystore but using debug keystore only. I fix this bug by including both sha-1 of debug and release in firebase console. |
@staufman You saved me lot of trouble. |
Interesting, I'll definitelly take a loot into it when uploading my next app. Thank you , sir. |
Surprisingly the SHA-1 from Android Studio was the issue. However when I got the SHA-1 from |
I spent 3 hours reading each comment and following the advices but I still got DEVELOPER ERROR. Then I realized my application package name was different than the package name in the Firebase app. In my application the package name was:
In my firebase the package name was:
So I followed this tutorial to change my app name. Then I searched the whole project for |
thank for this one, i have solved this issu by following your 💯 |
Can't seem to solve this issue. I have two custom keystores setup.
Still the same |
No matters weather you are using a firebase or NOT you have to have both the configurations (Android as well as Web client ) //DeveloperError or any login error
|
I was facing the same issue since last three days and getting the error of the DEVELOPER_ERROR. Regenerated new project and Auth0 Client on the console for android |
Hello, Have you used with firebase or without firebase ? here ClientId is not supported.
|
had the same issue. It is solved after I noticed that I put the wrong client_id to webClientId. |
For someone facing similar issue, one of the reasons is not having appropriate SHA1 key configured in firebase. At least that's what happened in my case. |
I think the latest comment of @meetjpatel is the only correct answer. Only way I found the correct SHA hashes. Although I want to add that while the app was live the Google Play Store console supplied different SHA hashes, which can be found under Configuration > App Signing on https://play.google.com/console |
This worked for me |
Please do not call the configure function with any param as |
Ensure that the SHA1 key is added to your project and the entry is there in the google-services,json file. |
For anybody like me attempting to NOT use firebase, this is how I got it working. Create TWO OAuth tokens in Google Cloud Console. One web application key, and an Android key. Use the debug.keystore file in android/app/debug.keystore: The simple existence of this Android key, even though you are not using the actual client ID at all, means it will work. In |
here is my workaround for using Google API (no firebase) |
This works, how or why does it work? |
This worked for me |
surprisingly it worked for me thanks a lot bro |
Spent many hours on this. Preamble: I started working on an app created by another developer. My fix: added my own SHA1 fingerprint found at C:\Users\Admin.android\debug.keystore to google developer console and firebase console of the project, update google-services.json and the developer error is gone. |
refer this, #794 (comment) |
You need to create two applications inside google developer console for your react native app. One of type web application and second with type android. use ClientID of web application with GoogleSignin.configure To get SHA 1 of your react native app on windows run this on root folder
|
I am going to close this because it's not an issue with the library but the way the environment is set up, thank you 🙂 |
I was trying keytool -exportcert -keystore ~/.android/debug.keystore -list -v which of course was giving me a SHA1 key but it was not working, after searching for a while 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, in case some need to know ) so I tried cd android and keytool -exportcert -keystore app/debug.keystore -list -v command and the key I got, worked really well. I hope it will help. |
For those who still get the the |
Hi, I updated my RN and now google sign-in is not working and returning the delightfully opaque DEVELOPER ERROR.
It works fine on iOS and nothing has changed in my code or setup.
This is my login code:
the full returned error:
The text was updated successfully, but these errors were encountered: