Skip to content

Commit 13ce1c8

Browse files
committed
Updated Google README docs for Google and Android setup
1 parent 3063886 commit 13ce1c8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const config = {
278278
}
279279
```
280280

281-
#### Google (iOS/Android)
281+
#### Google (iOS)
282282

283283
To add Google auth to our application, first we'll need to create a google application. Create or use an existing one by heading to the [developers.google.com/](https://developers.google.com/) page (or the console directly at [https://console.developers.google.com](https://console.developers.google.com)).
284284

@@ -305,6 +305,14 @@ const config = {
305305
}
306306
```
307307

308+
#### Google (Android)
309+
310+
To set up Google on Android, follow the same steps as before, except this time instead of creating an iOS API, create a **web api credential**. Make sure to add the **redirect url** at the bottom (it defaults to `http://localhost/google`):
311+
312+
![](./resources/google/android-creds.png)
313+
314+
When creating an Android-specific configuration, create a file called `config/development.android.js`. React Native will load it instead of the `config/development.js` file automatically on Android.
315+
308316
#### Github (iOS/Android)
309317

310318
Adding Github auth to our application is pretty simple as well. We'll need to create a web application on the github apps page, which can be found at [https://github.com/settings/developers](https://github.com/settings/developers). Create one, making sure to add _two_ apps (one for iOS and one for Android) with the callback urls as:

resources/google/android-creds.png

1.39 MB
Loading

0 commit comments

Comments
 (0)