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
You don't need to include the google-services.json file in your app unless you
235
+
are using Google services that require it. You do need to enable the OAuth APIs
236
+
that you want, using the [Google Cloud Platform API
237
+
manager](https://console.developers.google.com/). For example, if you
238
+
want to mimic the behavior of the Google Sign-In sample app, you'll need to
239
+
enable the [Google People API](https://developers.google.com/people/).
240
+
241
+
Make sure you've filled out all required fields in the console for [OAuth consent screen](https://console.developers.google.com/apis/credentials/consent). Otherwise, you may encounter `APIException` errors.
242
+
243
+
### Google Sign In for iOS
244
+
245
+
1.[First register your application](https://developers.google.com/mobile/add?platform=ios).
246
+
2. Make sure the file you download in step 1 is named `GoogleService-Info.plist`.
247
+
3. Move or copy `GoogleService-Info.plist` into the `[my_project]/ios/Runner` directory.
248
+
4. Open Xcode, then right-click on `Runner` directory and select `Add Files to "Runner"`.
249
+
5. Select `GoogleService-Info.plist` from the file manager.
250
+
6. A dialog will show up and ask you to select the targets, select the `Runner` target.
251
+
7. Then add the `CFBundleURLTypes` attributes below into the `[my_project]/ios/Runner/Info.plist` file.
252
+
253
+
```xml
254
+
<!-- Put me in the [my_project]/ios/Runner/Info.plist file -->
255
+
<!-- Google Sign-in Section -->
256
+
<key>CFBundleURLTypes</key>
257
+
<array>
258
+
<dict>
259
+
<key>CFBundleTypeRole</key>
260
+
<string>Editor</string>
261
+
<key>CFBundleURLSchemes</key>
262
+
<array>
263
+
<!-- TODO Replace this value: -->
264
+
<!-- Copied from GoogleService-Info.plist key REVERSED_CLIENT_ID -->
0 commit comments