Skip to content

Commit cd0ada0

Browse files
authored
docs: even better developer_error troubleshooting (#25)
1 parent 241b92e commit cd0ada0

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

docs/setting-up/get-config-file.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Please note that you **do not** need Firebase to configure Google Sign In. Howev
1010

1111
Read below on how to set up Google Sign In for your Android app.
1212

13-
### Obtain SHA-1 certificate fingerprints
14-
15-
:::warning
16-
This is crucial for Google Sign-In to work on Android. If not done correctly, you will get the infamous [`DEVELOPER_ERROR` error](/docs/troubleshooting#developer_error).
13+
:::danger
14+
Completing this guide is crucial for Google Sign-In to work on Android. If not done correctly, you will get the infamous `DEVELOPER_ERROR` error [(how to troubleshoot it)](/docs/troubleshooting#developer_error).
1715
:::
1816

17+
### Obtain SHA-1 certificate fingerprints
18+
1919
You likely have multiple signing configurations - for example for building local debug and release APKs, builds on [Expo EAS](https://docs.expo.dev/app-signing/managed-credentials/#inspecting-credentials-configuration), and [Play App Signing](https://support.google.com/googleplay/android-developer/answer/9842756?hl=en) for production deployments. You will need to get the SHA1 certificate fingerprints
2020
for _all_ keystores you intend to use and enter them _all_ in Firebase or Google Cloud Console.
2121

@@ -34,9 +34,10 @@ import TabItem from '@theme/TabItem';
3434

3535
<TabItem value="playStore" label="When releasing via Google Play Store">
3636
Check if "Google Play App Signing" is enabled for your app [in the console](https://play.google.com/console/u/0/).
37-
If it is enabled, you need to obtain the "App signing certificate" `SHA-1`.
37+
If it is enabled, you need to take the following steps:
3838

39-
You can find it at: App -> Release (in the left sidebar) -> Setup -> App integrity. Under the App signing key certificate, copy `SHA-1 certificate fingerprint`.
39+
1. In Google Play Console, navigate to: \<Your App\> -> Release section (in the left sidebar) -> Setup -> App Signing.
40+
2. Under the "App signing key certificate" _and also_ "Upload key certificate", take note of `SHA-1 certificate fingerprint`.
4041

4142
</TabItem>
4243
</Tabs>

docs/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This is always (_always_!) a configuration mismatch between your app and Google'
2222
Follow these pointers:
2323

2424
- [Search the issue tracker](https://github.com/react-native-google-signin/google-signin/issues?q=is%3Aissue+DEVELOPER+ERROR+is%3Aclosed) for old reports of the error
25-
- Make sure that your SHA certificate fingerprints and package name you entered in Firebase / Google Cloud Console are correct. If you are in development, make sure your development signing fingerprint is added as well.
25+
- Make sure that your SHA certificate fingerprints and package name you entered in Firebase / Google Cloud Console are correct. [See how your app was signed](https://x.com/vonovak/status/1692127631473529226). If you are in development, make sure your development signing fingerprint is added as well.
2626
- Follow the [setup guide](/docs/setting-up/get-config-file) and perform its steps once again.
2727
- If you're passing `webClientId` in configuration object to `GoogleSignin.configure()` make sure it's correct and that it is of type web (NOT Android!). You can get your `webClientId` from [Google Developer Console](https://console.developers.google.com/apis/credentials). It is listed under "OAuth 2.0 client IDs".
2828

0 commit comments

Comments
 (0)