Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 2.04 KB

setup-google.md

File metadata and controls

39 lines (33 loc) · 2.04 KB

Set up authentication using Google Sign-In

Android

  1. Add the following project variable to your variables.gradle file (usually android/build.gradle):
    ext {
    +    rgcfaIncludeGoogle = true
    }
    Run npx cap update to update the native plugins and dependencies.
  2. Specify your app's SHA-1 fingerprint from the Settings page of the Firebase console. Refer to Authenticating Your Client for details on how to get your app's SHA-1 fingerprint.
  3. Enable Google Sign-In in the Firebase console:
    1. Open the Auth section in the Firebase console.
    2. Open the Sign-in method tab and enable Google Sign In.

iOS

  1. Add the RobingenzCapacitorFirebaseAuthentication/Google pod to your Podfile (usually ios/App/Podfile):
    target 'App' do
    capacitor_pods
    # Add your Pods here
    +  pod 'RobingenzCapacitorFirebaseAuthentication/Google', :path => '../../node_modules/@robingenz/capacitor-firebase-authentication'
    end
    Run npx cap update to update the native plugins and dependencies.
  2. Add custom URL schemes to your Xcode project:
    1. Open your project configuration. Select your app from the TARGETS section, then select the Info tab, and expand the URL Types section.
    2. Click the + button, and add a URL scheme for your reversed client ID. You find this value in your GoogleService-Info.plist configuration file. Look for the REVERSED_CLIENT_ID key and paste the value of that key into the URL Schemes box on the configuration page. Leave the other fields blank.

Web

  1. See Before you begin and follow the instructions to configure and enable sign-in with Google correctly.