Skip to content
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

DEVELOPER ERROR after select a account, not using firebase #955

Closed
endlesstech opened this issue Mar 17, 2021 · 26 comments
Closed

DEVELOPER ERROR after select a account, not using firebase #955

endlesstech opened this issue Mar 17, 2021 · 26 comments

Comments

@endlesstech
Copy link

No description provided.

@endlesstech
Copy link
Author

I carefully configure already the SHA1 debug key in the console.
iOS is working fine.
For only Android. Please help. Thanks

@NguyenPhatBG
Copy link

Me too :)) @endlesstech

@ThinhPhan
Copy link

Duplicate of #823
@NguyenPhatBG @endlesstech Please check issue above, it's help me a lot.

@TheChanDI
Copy link

have someone solved ?? I am getting this issue too

@NguyenPhatBG
Copy link

@TheChanDI
I found the my problem, release-keystore.keystore file is changed by my co-worker, so the SHA1 from me is not the right release key hash to add on https://developers.facebook.com/ =))
Now it's worked to me @ @

@nikitabudkovskiy
Copy link

I carefully configure already the SHA1 debug key in the console.
iOS is working fine.
For only Android. Please help. Thanks

How did you get SHA1?
Try like this:
cd android && ./gradlew signingReport
This generates two variant keys. You can copy the SHA1 that belongs to the debugAndroidTest variant key option.

@TheChanDI
Copy link

Same issue :(

I think the SHA1 key is not correct. After hours of debugging, I wasn't able to solve so I try to do using firebase still got the same error. Then after some research, the sha1 key I used was incorrect. Here use this but change the path to your keystore. I hope it works for you.

keytool -exportcert -alias my-key-alias -keystore /Users/enfinyinnovations/Desktop/mobile\ apps/sherpaDictionary/android/app/my-upload-key.keystore
| openssl sha1 -binary | openssl base64

@tgvishal
Copy link

I faced the same problem. The solution is for Android we have to put "androidClientId" key in Google configuration.
GoogleSignin.configure(
{
//webClientId is required if you need offline access
offlineAccess: true,
webClientId:'<Your Web OAuth 2.0 Client ID from Google Console>',
androidClientId: '<Your Android OAuth 2.0 Client ID from Google Console>',
scopes: ['profile', 'email']
});

@NguyenPhatBG
Copy link

@tgvishal Can't find property name's androidClientId in GoogleSignin.configure({})?

@tgvishal
Copy link

tgvishal commented Jun 6, 2021

@tgvishal Can't find property name's androidClientId in GoogleSignin.configure({})?

Please follow this answer on StackOverflow
https://stackoverflow.com/a/58051028

@NguyenPhatBG
Copy link

@tgvishal I try to get sha1 with cmd, but not working with release key, so i go to App signing (upload APK to play store) get sha1, sha-256, it's worked only add sha-256 key :)

@codal-hkrishnani
Copy link

Where exactly I need to add sha1 key. I am not using firebase?

@tgvishal
Copy link

Where exactly I need to add sha1 key. I am not using firebase?

image

Go to https://console.cloud.google.com/
If you have a Google Console Project already then select the API Project, else create a new Project.
Select the "Credentials" menu from the side navigation.
Click on "Create Credentials", then select "OAuth client ID", then select "Application Type"=> Android, you will get the input box for the SHA-1 key.
Please check the attached screenshot.

@codal-hkrishnani
Copy link

Where exactly I need to add sha1 key. I am not using firebase?

image

Go to https://console.cloud.google.com/
If you have a Google Console Project already then select the API Project, else create a new Project.
Select the "Credentials" menu from the side navigation.
Click on "Create Credentials", then select "OAuth client ID", then select "Application Type"=> Android, you will get the input box for the SHA-1 key.
Please check the attached screenshot.

I already added there still I am getting error DEVELOPER_ERROR, what else i need to do @tgvishal

@tgvishal
Copy link

Where exactly I need to add sha1 key. I am not using firebase?

image
Go to https://console.cloud.google.com/
If you have a Google Console Project already then select the API Project, else create a new Project.
Select the "Credentials" menu from the side navigation.
Click on "Create Credentials", then select "OAuth client ID", then select "Application Type"=> Android, you will get the input box for the SHA-1 key.
Please check the attached screenshot.

I already added there still I am getting error DEVELOPER_ERROR, what else i need to do @tgvishal

You are passing client id to this key in Google configuration method “androidClientId” right?

#955 (comment)

@codal-hkrishnani
Copy link

Where exactly I need to add sha1 key. I am not using firebase?

image
Go to https://console.cloud.google.com/
If you have a Google Console Project already then select the API Project, else create a new Project.
Select the "Credentials" menu from the side navigation.
Click on "Create Credentials", then select "OAuth client ID", then select "Application Type"=> Android, you will get the input box for the SHA-1 key.
Please check the attached screenshot.

I already added there still I am getting error DEVELOPER_ERROR, what else i need to do @tgvishal

You are passing client id to this key in Google configuration method “androidClientId” right?

#955 (comment)

Actually i've tried both way but no luck.

@NguyenPhatBG
Copy link

@codal-hkrishnani You're not using firebase, but google sign in is necessary config on firebase console, This is mentioned in the documentation, after you have .json file, add SHA-1 or SHA-256 (sometime it's must be) on firebase config both for debug and release, I hope this is useful for you

@codal-hkrishnani
Copy link

@codal-hkrishnani You're not using firebase, but google sign in is necessary config on firebase console, This is mentioned in the documentation, after you have .json file, add SHA-1 or SHA-256 (sometime it's must be) on firebase config both for debug and release, I hope this is useful for you

Is that so? I didn't see that in documentation. would you mind sharing that link.

@maxpaynestory
Copy link

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

react-native-DEVELOPER_ERROR

To get SHA 1 of your react native app on windows run this on root folder

cd android && gradlew signingReport

@vonovak
Copy link
Member

vonovak commented Oct 4, 2021

As the issue has been resolved, and the solution is documented in troubleshooting, I'm going to close this but keep it as a pinned post because it's such a common error.

Thanks! :)

@vonovak vonovak closed this as completed Oct 4, 2021
@react-native-google-signin react-native-google-signin locked as resolved and limited conversation to collaborators Oct 4, 2021
@vonovak vonovak pinned this issue Oct 4, 2021
@react-native-google-signin react-native-google-signin unlocked this conversation Oct 22, 2021
@castalonirenz
Copy link

Same issue here

@Seamus1989
Copy link

The issue hasn't been resolved, and is not mentioned in troubleshooting for applications not using firebase.

@pinturic
Copy link

pinturic commented Apr 2, 2022

For me it was mandatory to specify the androidClientId; this should be specified in the example.

@Aryk
Copy link

Aryk commented May 9, 2022

This is not really mentioned in the documentation, but is it required for the "OAuth Consent Screen" to be filled in...I'm guessing the obvious answer to this would be "yes", but I still don't see it documented anywhere (maybe it's so obvious).

I'm also getting DEVELOPER_ERROR but I think it's because I'm missing approval for my app from Google because my firebase google-services.json, etc are all set up correctly.

EDIT: This solved it for me:

https://github.com/react-native-google-signin/google-signin/blob/master/docs/android-guide.md#getting-developer_error-or-code-10-error-message-on-android-when-trying-to-login-or-signin-hangs-and-never-resolves-the-promise

😄

@vonovak vonovak unpinned this issue Aug 27, 2022
@waheeddammam0078
Copy link

100% Solution
None Firebase/
DEVELOPER ERROR JUST BECasue of you using webclientid instead of androuidclientid

GoogleSignin.configure({
androidClientId: '',
scopes: ['profile', 'email'],
});

offline access also be removed

all done

@oussamaserhane
Copy link

Try to update google-services.json file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests