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
- Sign in to Google Cloud Console.
- Click New Project.
- Enter a Project name (example:
MySocialLoginApp). - Click Create.
Step 2: Configure the OAuth consent screen
Before creating OAuth clients, you need to configure the OAuth consent screen that users will see during sign-in.2.1 Access OAuth consent screen
- In Google Cloud Console, go to APIs & Services → OAuth consent screen.

Google Cloud OAuth consent screen
2.2 Configure the consent screen
- User Type: Select your audience type.
- Click Create.
-
Fill in App Information:
- App name: Your app’s name (shown to users)
- User support email: Valid support email
- App logo: Optional app logo
- Add Developer contact information.
- Review and acknowledge Google API Services: User Data Policy.
- Click Save and Continue.

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
- Navigate to APIs & Services → Credentials.
- Click Create Credentials → Select OAuth client ID.
- For Application type, select iOS.
- Enter a descriptive Name for your iOS app.
- Enter your iOS Bundle ID (example:
co.median.ios.soclogin). - Click Create.
- Save your iOS Client ID.

iOS OAuth client setup
Android client
- Navigate to APIs & Services → Credentials.
- Click Create Credentials → Select OAuth client ID.
- For Application type select Android.
- Enter a descriptive Name for your Android app.
-
Enter your Android Package Name (example:
co.median.android.soclogin). -
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
- Click Create.
- Save your Android Client ID.

Android OAuth client setup
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.

SHA-1 of Android debug keystore
Web client
- Navigate to APIs & Services → Credentials.
- Click Create Credentials → Select OAuth client ID.
- For Application type select Web application.
- Enter a descriptive Name.
- Optional: Add Authorized JavaScript origins and Authorized redirect URIs if using Server-Side Redirects. Leave blank if using JavaScript Callbacks.
- Click Create.
- Save your Web Client ID for the Median configuration.

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

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:- Sign in to App Studio.
- Navigate to: Native Plugins → Social Login → Settings.
- 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.
- Click Confirm and Save.
- Rebuild your app for the changes to take effect.

Example Social Login plugin configuration
Frequently asked questions
Android app doesn't display the prompt to select the account
Android app doesn't display the prompt to select the account
If your Google Sign-In button is not launching the overlay to select your Google account, it typically shows up as a To resolve the issue, follow the three troubleshooting steps below to confirm your Cloud project configuration, Google user account, and Android emulator settings.
No credentials available issue in the debug console. The full stack trace typically shows as follows:- 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.
-
If you have confirmed your OAuth client configuration, confirm the user configuration on your test device.
- Sign in to a Google Account on the test device or emulator you are using.
- Ensure that the signed-in user allows Google Sign-In prompts. This configuration can be reviewed in your Google Account Settings.
- 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.
How do I find my Android package name and iOS Bundle ID?
How do I find my Android package name and iOS Bundle ID?
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.