> For the complete documentation index, see [llms.txt](https://taketok.gitbook.io/taketok/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://taketok.gitbook.io/taketok/config-android-project/firebase-configuration.md).

# Firebase Configuration

After Change package name now you need to config the firebase (firebase its a google service used to send notification and to allow the application login with google accounts)

## Setup Firebase project <a href="#d4bb" id="d4bb"></a>

To create a new Firebase project you will need to go [here](https://console.firebase.google.com/).

1. Click on “***Add project***” to create a new project.

![](/files/-MFyo8o_6ackaN-cZgbt)

**2.** Now, you have to enter a “***Project name***” and check the two checkboxes below. Then, click on “***Create project***”.

![](/files/-MFyoZSSRsernVnmeogP)

**3.** Now, wait for the creation to complete and click on “***Continue***”.

![](/files/-MFyom0pU50gnWWuUCvu)

**4.** This will lead you to the “***Project Overview***”. From here you will be able to add **Firebase** to your **Flutter** project.

![](/files/-MFypBDd3MfHIIHru3LT)

5\. Click on the **Android icon**.&#x20;

In this form, you have to first enter the “***Android Package name***”. You can get the android package name form your **project directory** → **android** → **app** → **src** → **AndroidManifest.xml**. On the second line, there will be your package name. Just copy & paste in the form.

![](/files/-MFyq6mThGXpmWgCNwRd)

4\. Now, you have to enter the “***SHA-1 hash***”. Just hover over the help (?) and click on ***See this page***. This will take you to “***Authenticating Your Client***” page.

![](/files/-MFyqUeu9_ztWYjjyhBY)

From here you will get the command to generate the SHA-1 hash. Paste this in your ***IDE terminal*** to get the SHA-1 hash. Just copy & paste this in the form.

5\. Click on ***Register App***.

![](/files/-MFypr7Soj9MMV3f_-bR)

6\. This will take you to the second step from where you can download the “***google-services.json***” file and just drag & drop it in your **project directory** → **android → app**. Then, click on **Next**.

![](/files/-MFyqpWR18S-F7hlYhPt)

7\. In the third step just follow the instructions add the ***code snippets*** accordingly in the desired position. Then, click on **Next**.

![](/files/-MFyr-ZDSxVgXig7HNYT)

8\. Finally, to complete the fourth step just **run the app** on your device and **attempt a google sign in** from the device for the first time.

> *Make sure that the internet connection of the device is turned on*.

![](/files/-MFyrK2PtNrs3RZwTgPz)

9\. After completing this step, you will see that the “***Continue to Console***” button gets enabled and click on it to go to the console of the app.

![](/files/-MFyrbQxFxkUA4dTvmRe)

1. Go to **Authentication Page** → **Users** tab and click on “***Set up sign-in method***”.

![](/files/-MFz0L_qSfUCZazptRt5)

2\. Go to **Cloud Firestore** → click on “**Create database**".

![](/files/-MFz3XEcMIxT0GIJ0Oqx)

![](/files/-MFz3eVxPismHkVNkZXb)

![](/files/-MFz3kZbGhUbrBfA9BIS)

![](/files/-MFz3pLXBdYaLRXkGdbk)

<br>
