You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the v6 version, `clientId` in the initialize method is used in priority over other places you could set up. If before you were using this only on the web, unset it on mobile. Or set it conditionally to replicate old behavior.
15
+
12
16
## Contributions
13
17
14
18
PRs are welcome and much appreciated that keeps this plugin up to date with Capacitor and official Google Auth platform library feature parity.
@@ -143,26 +147,19 @@ or see more [CapacitorGoogleAuth-Vue3-example](https://github.com/reslear/Capaci
143
147
2. Add **identifier**`REVERSED_CLIENT_ID` as **URL schemes** to `Info.plist` from **iOS URL scheme**<br>
144
148
(Xcode: App - Targets/App - Info - URL Types, click plus icon)
145
149
146
-
3. Set **Client ID** one of the ways:
147
-
1. Set in `capacitor.config.json`
148
-
-`iosClientId` - specific key for iOS
149
-
-`clientId` - or common key for Android and iOS
150
-
2. Download `GoogleService-Info.plist` file with `CLIENT_ID` and copy to **ios/App/App** necessarily through Xcode for indexing.
151
-
152
-
plugin first use `iosClientId` if not found use `clientId` if not found use value `CLIENT_ID` from file `GoogleService-Info.plist`
150
+
3. Set **Client ID** one of the ways (by order of importance in the plugin):
151
+
1. Set `clientId` in initialize method
152
+
2. Set `iosClientId` in `capacitor.config.json`
153
+
3. Set `clientId` in `capacitor.config.json`
154
+
4. Set `CLIENT_ID` in `GoogleService-Info.plist`
153
155
154
156
### Android
155
157
156
-
Set **Client ID** :
157
-
158
-
1. In `capacitor.config.json`
159
-
160
-
-`androidClientId` - specific key for Android
161
-
-`clientId` - or common key for Android and iOS
162
-
163
-
2. or set inside your `strings.xml`
164
-
165
-
plugin first use `androidClientId` if not found use `clientId` if not found use value `server_client_id` from file `strings.xml`
158
+
Set **Client ID** (by order of importance in the plugin):
159
+
1. Set `clientId` in initialize method
160
+
2. Set `androidClientId` in `capacitor.config.json`
0 commit comments