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

Update README.md for changes introduced in #269 #390

Merged
merged 3 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update README.md
riderx authored Aug 15, 2024

Verified

This commit was signed with the committer’s verified signature.
oddgrd Oddbjørn Grødem
commit e6fdb626b349e95132a8eadd11b45656605e00ca
29 changes: 12 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -143,26 +143,21 @@ or see more [CapacitorGoogleAuth-Vue3-example](https://github.com/reslear/Capaci
2. Add **identifier** `REVERSED_CLIENT_ID` as **URL schemes** to `Info.plist` from **iOS URL scheme**<br>
(Xcode: App - Targets/App - Info - URL Types, click plus icon)

3. Set **Client ID** one of the ways:
1. Set in `capacitor.config.json`
- `iosClientId` - specific key for iOS
- `clientId` - or common key for Android and iOS
2. Download `GoogleService-Info.plist` file with `CLIENT_ID` and copy to **ios/App/App** necessarily through Xcode for indexing.

plugin first use `iosClientId` if not found use `clientId` if not found use value `CLIENT_ID` from file `GoogleService-Info.plist`
3. Set **Client ID** one of the ways (by order of importance in the plugin):
1. Set `clientId` in initialize method
2. Set `iosClientId` in initialize method
3. Set `clientId` in `capacitor.config.json`
4. Set `iosClientId` in `capacitor.config.json`
5. Set `CLIENT_ID` in `GoogleService-Info.plist`

### Android

Set **Client ID** :

1. In `capacitor.config.json`

- `androidClientId` - specific key for Android
- `clientId` - or common key for Android and iOS

2. or set inside your `strings.xml`

plugin first use `androidClientId` if not found use `clientId` if not found use value `server_client_id` from file `strings.xml`
Set **Client ID** (by order of importance in the plugin):
1. Set `clientId` in initialize method
2. Set `androidClientId` in initialize method
3. Set `clientId` in `capacitor.config.json`
4. Set `androidClientId` in `capacitor.config.json`
5. Set `server_client_id` in `strings.xml`

```xml
<resources>