Skip to main content
This guide walks you through setting up Google Sign-In for your app. You’ll create a Google Cloud Project, configure OAuth clients for iOS and Android, and gather the credentials needed for Median App Studio.

Before you start

Make sure you have:
  • A Google Cloud account
  • Your app’s iOS Bundle ID (example: co.median.ios.soclogin)
  • Your app’s Android Package Name (example: co.median.android.soclogin)
  • Your app’s Android SHA-1 certificate fingerprint (get it from the Median team if we’re signing your app)
  • Admin access to Google Cloud Console

Step 1: Create a Google Cloud project

Existing Google Cloud projectIf you already have a Google Cloud Project for your website, you can use it. Skip to Step 2 to create your OAuth clients.

1.1 Create new project

  1. Sign in to Google Cloud Console.
  2. Click New Project.
  3. Enter a Project name (example: MySocialLoginApp).
  4. Click Create.
Before creating OAuth clients, you need to configure the OAuth consent screen that users will see during sign-in.
  1. In Google Cloud Console, go to APIs & Services → OAuth consent screen.
OAuth consent screen page under APIs & Services in Google Cloud Console

Google Cloud OAuth consent screen

  1. User Type: Select your audience type.
  2. Click Create.
  3. Fill in App Information:
    • App name: Your app’s name (shown to users)
    • User support email: Valid support email
    • App logo: Optional app logo
  4. Add Developer contact information.
  5. Review and acknowledge Google API Services: User Data Policy.
  6. Click Save and Continue.
App information form on the OAuth consent screen

OAuth consent app information

Firebase usersIf you use Firebase Console, make sure to configure the support email in Firebase Console → Settings → General → Public Settings → Support Email.

Step 3: Create OAuth clients

You need to create three separate OAuth clients: one for iOS, one (or more) for Android, and one for web.

iOS client

  1. Navigate to APIs & Services → Credentials.
  2. Click Create Credentials → Select OAuth client ID.
  3. For Application type, select iOS.
  4. Enter a descriptive Name for your iOS app.
  5. Enter your iOS Bundle ID (example: co.median.ios.soclogin).
  6. Click Create.
  7. Save your iOS Client ID.
Create OAuth client ID form with Application type set to iOS

iOS OAuth client setup

Android client

  1. Navigate to APIs & Services → Credentials.
  2. Click Create Credentials → Select OAuth client ID.
  3. For Application type select Android.
  4. Enter a descriptive Name for your Android app.
  5. Enter your Android Package Name (example: co.median.android.soclogin).
  6. Enter your SHA-1 certificate fingerprint:
    • If Median is signing your app: Find your Android release certificate SHA-1 fingerprint in App Studio
    • If using Google Play App Signing: Available from Google Play Console → Release → Setup → App Integrity page
  7. Click Create.
  8. Save your Android Client ID.
Create OAuth client ID form with Application type set to Android

Android OAuth client setup

For local debugging: You will need to create additional OAuth clients for each development machine using the local SHA-1 certificate fingerprint. To obtain your local fingerprint:
Enter the keystore password (default for debug keystore is android). For debug builds: The package name should append .debug (example: co.median.android.soclogin.debug). Create a separate OAuth client for each developer machine with a descriptive name.
keytool output showing the SHA-1 fingerprint of the debug keystore

SHA-1 of Android debug keystore

Web client

  1. Navigate to APIs & Services → Credentials.
  2. Click Create Credentials → Select OAuth client ID.
  3. For Application type select Web application.
  4. Enter a descriptive Name.
  5. Optional: Add Authorized JavaScript origins and Authorized redirect URIs if using Server-Side Redirects. Leave blank if using JavaScript Callbacks.
  6. Click Create.
  7. Save your Web Client ID for the Median configuration.
Create OAuth client ID form with Application type set to Web application

Web OAuth client setup

Step 4: Verify the OAuth client dashboard

Your Google Cloud Credentials dashboard should now show:
  • iOS Client ID
  • Android Client ID (one or more if including debug clients)
  • Web Client ID
Credentials page listing the iOS, Android, and web OAuth clients

Completed Google Cloud project setup

Configuration completeYou’ve configured Google Cloud. Next, add these credentials to App Studio.

Step 5: Add credentials to Median App Studio

Now that your Google Cloud OAuth clients are configured, add these credentials to App Studio:
  1. Sign in to App Studio.
  2. Navigate to: Native Plugins → Social Login → Settings.
  3. Enter your Google Sign-In Configuration:
Multiple Android clientsIf you created multiple Android OAuth clients (production and debug), use your production Android Client ID in App Studio.
  1. Click Confirm and Save.
  2. Rebuild your app for the changes to take effect.
Google Sign-In settings in the Social Login plugin in App Studio

Example Social Login plugin configuration

Frequently asked questions

If your Google Sign-In button is not launching the overlay to select your Google account, it typically shows up as a No credentials available issue in the debug console. The full stack trace typically shows as follows:
To resolve the issue, follow the three troubleshooting steps below to confirm your Cloud project configuration, Google user account, and Android emulator settings.
  1. The most common case of this issue is a misconfiguration on the Android OAuth client. Confirm the SHA-1 you’re using for your Android OAuth client and/or set up a second Android OAuth client for local testing using your debug SHA-1 value.
  2. If you have confirmed your OAuth client configuration, confirm the user configuration on your test device.
    1. Sign in to a Google Account on the test device or emulator you are using.
    2. Ensure that the signed-in user allows Google Sign-In prompts. This configuration can be reviewed in your Google Account Settings.
  3. If you observe the issue occasionally in your emulators only, it could be that you are using an emulator with an API level below 35. Update the API level of your emulators in Android Studio.
For applications in development, the required parameters can be found in the App Identifiers section of App Studio.For live or published apps, use the deviceInfo() JavaScript Bridge command to retrieve the corresponding value, which is stored under the appId key.
Last modified on November 7, 2026