diff --git a/README.md b/README.md index c455c9b..8dea468 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,10 @@ Capacitor plugin for Google Auth. npm npm npm Dependents (via libraries.io) install size

+## Breaking change in V6 + +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. + ## Contributions 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 2. Add **identifier** `REVERSED_CLIENT_ID` as **URL schemes** to `Info.plist` from **iOS URL scheme**
(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 `capacitor.config.json` + 3. Set `clientId` in `capacitor.config.json` + 4. 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 `capacitor.config.json` +3. Set `clientId` in `capacitor.config.json` +4. Set `server_client_id` in `strings.xml` ```xml