# firebase config

### Firebase Config&#x20;

**Create a Firebase App**‌

First, you should create a free Firebase account and create a new project there. You can visit firebase.google.com and signup if you don't have an account with Google earlier, and if you have an account, you can create a firebase app project. You can enter the project Name and Select Region, and it will create a Firebase project for you.‌

Once the project gets Created, Navigate into Overview menu on the left side there you can see project overview and under that click on project settings and **Add Firebase to your android app** as displayed in the below screenshot.<br>

![](https://2186269672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPUQp6Wj5PKbnirlIcI%2F-LpgMrJS5wkdyzk_ctw7%2F-LpgNER5YP82Hgr1A6Nb%2Fimage.png?alt=media\&token=b9ca62b0-f32d-48f7-aeef-be6adf9ae01d)

After that, it navigates to the page where you can enter your android package. To get the package name go to **android >main >Android Mainfest.XML** there you will find package name then click on register app, and you will find an option to download the google-services.json file as displayed in the below screenshot

![](https://2186269672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPUQp6Wj5PKbnirlIcI%2F-LpgMrJS5wkdyzk_ctw7%2F-LpgNovskDZyDgbJndOW%2Fimage.png?alt=media\&token=6ac5f75c-e1e8-46bf-ad86-28345d491055)

Once you download that you need to copy that contents present in the downloaded file then navigate to your project file directory inside that  **src>android >app >google service.json** file open that and paste the contents you copied earlier.Then move to your project directory there you can find fire-store service .dart folder inside that you have to replace the following&#x20;

**googleAppID**: you can find it from google service.json file&#x20;

&#x20;**gcmSenderID**: go to firebase.google.com there when you sign in in left corner there is project overview >cloud messaging under that we can find senderID&#x20;

&#x20;**apiKey**: you can replace client ID from google service.json file&#x20;

&#x20;**projectID**: you can find this from google service.json file from  project folder&#x20;

&#x20;and navigate to fire base .google.com click on next and run your  application to verify installation and click on console .
