# Firebase Configuration

## &#x20;**Create a Firebase project**

Before you can add Firebase to your Flutter app, you need to create a Firebase project to connect to your app. Visit the link below to learn more about Firebase projects.

{% embed url="<https://firebase.google.com/docs/projects/learn-more>" %}

{% hint style="warning" %}
If you're releasing your Flutter app on both iOS and Android, register both the iOS and Android versions of your app with the same Firebase project.
{% endhint %}

### &#x20;Visit for more information on how to setup for Android

{% embed url="<https://firebase.google.com/docs/flutter/setup?platform=android>" %}

### Visit for more information on how to setup for iOS

{% embed url="<https://firebase.google.com/docs/flutter/setup?platform=ios>" %}

## &#x20;**Register your app with Firebase**

1. In the center of the [Firebase console's project overview page](https://console.firebase.google.com/?pli=1), click the Android icon to launch the setup workflow.

2\. Enter your app's package name in the Android package name field.

{% hint style="warning" %}
Make sure that you enter the ID that your app is actually using. You cannot add or modify this value after you register your app with your Firebase project. Both applicationId should be matched.
{% endhint %}

3\. Click Register app.

## &#x20;**Add a Firebase configuration file**

Click Download google-services.json to obtain your Firebase Android config file (google-services.json).

Move your config file into the android/app directory of your Flutter app.

Follow the instruction for enabling Firebase services in your Android app

{% embed url="<https://firebase.google.com/docs/flutter/setup?platform=android>" %}
