Xgenious/ docs
Products
Get support

Google Sign-In Setup

1. Enable Google Provider in Firebase

  1. Go to the Firebase Console.
  2. Select Authentication -> Sign-in method.
  3. Click on Google, enable it, select a support email, and click Save.

2. Add SHA-1 Fingerprints (Android)

Google Sign-In on Android requires SHA-1 and SHA-256 fingerprint hashes:

  1. Generate your app's SHA-1 fingerprint:
    • For debug build, run:
      cd android && ./gradlew signingReport
      
    • For production, get the SHA-1 from your Google Play Console under Release -> Setup -> App signing.
  2. Go to Firebase Console -> Project Settings -> General.
  3. Scroll down to your Android app and click Add fingerprint.
  4. Paste your SHA-1 key and save.
  5. Re-download google-services.json and replace it in android/app/google-services.json.

3. iOS URL Schemes Configuration

  1. Open your downloaded GoogleService-Info.plist file.

  2. Find the key <key>REVERSED_CLIENT_ID</key> and copy its <string> value (e.g. com.googleusercontent.apps.1234567890-abcdefg).

  3. Open ios/Runner/Info.plist in your editor or Xcode.

  4. Add or update the URL Scheme inside <key>CFBundleURLTypes</key>:

    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>YOUR_REVERSED_CLIENT_ID</string>
            </array>
        </dict>
    </array>
    
Still stuck?
Our support team is ready to help you get set up.
Get support