> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Services

> Generate the Firebase configuration files for iOS and Android and upload them in App Studio to enable Firebase features in your app.

If your app relies on Firebase-powered features like [Firebase Cloud Messaging push notifications](https://docs.median.co/docs/firebase-cloud-messaging.md), [Firebase Analytics](https://docs.median.co/docs/firebase-analytics.md), or [Firebase Crashlytics reporting](https://docs.median.co/docs/crashlytics.md), it needs two configuration files from the Firebase Console:

* `GoogleService-Info.plist` for iOS
* `google-services.json` for Android

Median lets you upload these files directly in App Studio, so Firebase is wired into your native mobile app builds without touching source code. This guide walks through generating both files in the Firebase Console and uploading them to your Median app.

## Prerequisites

Before you start, make sure you have:

* A [Google Firebase account](https://firebase.google.com/) with owner or editor access to the target project
* Your app's **Bundle ID** (iOS) and **Package Name** (Android), found in App Studio under *Build & Deploy > App Identifiers*. See [App identifiers](https://docs.median.co/docs/app-identifiers.md) if you haven't set these yet.
* A licensed Median app (required to access the Google Services upload setting)

This guide uses a demo app with the following identifiers, which you'll need to replace with your own:

| Platform | Identifier | Example |
| - | - | - |
| iOS | Bundle ID | `co.median.ios.firebase` |
| Android | Package Name | `co.median.android.firebase` |

Google's Console UI changes from time to time. If any screen in this guide doesn't match what you see, defer to Google's own documentation:

* [Understand Firebase projects](https://firebase.google.com/docs/projects/learn-more)
* [Firebase for Apple platforms](https://firebase.google.com/docs/ios/setup)
* [Firebase for Android](https://firebase.google.com/docs/android/setup)

## Google services walkthrough

### Step 1: Create or open a Firebase project

If you do not have an active Google Firebase project, you may need to create a new project after signing into your [Google Firebase Account](https://firebase.google.com/docs/android/setup).

Once your project is set up, you can start the integration by choosing the iOS or Android logo in your Project Overview screen. Both integrations can be set up under one Project.

![Firebase Project Overview screen with iOS and Android app options](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/dc35b33c4875abc9bfedea9df79c72f711ee2976b9586a20e0536f11844942a4-Screenshot_2026-09-03_at_09.50.55.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=f632a7497992e512dafb7eb91547b9b5)

Google Firebase project overview

### Step 2: Register your iOS app and download the config file

You can register your app in Firebase by providing the Apple Bundle ID. The Apple Bundle ID of your app can be found and configured in App Studio under the *Build & Deploy > App Identifiers* section. Learn more about your Bundle ID in the [App identifiers](https://docs.median.co/docs/app-identifiers.md) documentation.

![Firebase form to register an iOS app with its Apple Bundle ID](https://mintcdn.com/median-co/7LCOHMhgIef7ewYE/images/docs/61c9a035ef6dd821a2f4907f250057c99b691bd2a672eec15d1efa9b485f1d80-Screenshot_2026-09-03_at_09.53.38.png?fit=max\&auto=format\&n=7LCOHMhgIef7ewYE\&q=85\&s=d30604636ea9152f09b761ca88324cb1)

Register an iOS app in Firebase

Once registered, download your generated `GoogleService-Info.plist` file.

![Firebase step to download the GoogleService-Info.plist file](https://mintcdn.com/median-co/dZQPJ_0wlG7WNBTy/images/docs/4bbc8fc9aefe1b21cb535209ca38b6a2eaf74a798cf2ecbc9de320dc9f251d17-Screenshot_2026-09-03_at_09.54.19.png?fit=max\&auto=format\&n=dZQPJ_0wlG7WNBTy\&q=85\&s=dd03d9b3d4b3d99bbd51d837f7c5ffc7)

Download GoogleService-Info.plist from Firebase

That's it for iOS. You don't need to complete Firebase's SDK installation steps, since Median handles that natively once you upload this file (see Step 4).

### Step 3: Register your Android app and download the config file

You can register your app in Firebase by providing the Android Package Name. The Android Package Name of your app can be found and configured in App Studio under the *Build & Deploy > App Identifiers* section. Learn more about your package name in the [App identifiers](https://docs.median.co/docs/app-identifiers.md) documentation.

![Firebase form to register an Android app with its package name](https://mintcdn.com/median-co/7LCOHMhgIef7ewYE/images/docs/7733cd14bccd879bf72c08d53fcffdc21d208d106512ee474232eeee98402eca-Screenshot_2026-09-03_at_09.57.43.png?fit=max\&auto=format\&n=7LCOHMhgIef7ewYE\&q=85\&s=31fc5bbc9b38c87c7ec94b664a836131)

Register an Android app in Firebase

Once your app is registered you can download your `google-services.json` file.

![Firebase step to download the google-services.json file](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/c9e2f8edae787f0378f848316ad2b6e9a405025e495ab653948ba9a041a81e0a-Screenshot_2026-09-03_at_09.58.27.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=6f0e6f9e23535ad129de452f382bc8e0)

Download google-services.json from Firebase

Once you download the configuration file the Google Firebase setup for Android is complete.

#### Android debug builds and product flavors

If your app uses multiple Android product flavors or a separate debug package (for example, `com.yourpackagename.dev`), generate a separate `google-services.json` for each package name and place it in the matching source folder. For example, a `dev` flavor build expects its file at:

```text theme={null}
/app/src/dev/google-services.json
```

### Step 4: Upload both files to Median App Studio

In App Studio, go to *Build & Deploy > Google Services* and upload both files:

* `GoogleService-Info.plist` (iOS)
* `google-services.json` (Android)

You can either upload the files directly or open each one in a text editor and paste its contents into App Studio.

![Uploading GoogleService-Info.plist and google-services.json in Build & Deploy > Google Services](https://mintcdn.com/median-co/dZQPJ_0wlG7WNBTy/images/docs/0e504ff6e9f542674cfee420e16ad8e81a0f6105cd6b7d2f00374af528fbc1af-output.gif?s=8c46d767f13d1386e842715a5381a51d)

Google Services file upload in App Studio

Save your changes and rebuild your app. Firebase services are now configured for both platforms.

## Troubleshooting

### Firebase features work on one platform but not the other

Confirm both files were uploaded. Check *Build & Deploy > Google Services* in App Studio to verify both `GoogleService-Info.plist` and `google-services.json` are present.

### Config uploaded, but Firebase still isn't initializing

Double-check that the Bundle ID or Package Name registered in Firebase exactly matches the identifiers in App Studio under *App Identifiers*. A mismatch is the most common root cause, and Firebase silently fails to initialize if the identifiers don't match.

## Frequently asked questions

> [accordion] Do I need separate Firebase projects for iOS and Android?
>
> No. Both platforms can be registered under a single Firebase project.

> [accordion] Is this feature available on all Median apps?
>
> No, Google Services configuration requires a [licensed app](https://docs.median.co/docs/licenses.md).

> [accordion] What if I change my app's Bundle ID or Package Name later?
>
> You'll need to re-register your mobile app in Firebase with the new identifier and upload a fresh configuration file, since the file is tied to the identifier.


## Related topics

- [Google Firebase Crashlytics](https://docs.median.co/docs/crashlytics.md)
- [Google Firebase Analytics](https://docs.median.co/docs/firebase-analytics.md)
- [Firebase Cloud Messaging](https://docs.median.co/docs/firebase-cloud-messaging.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.