# Firebase

## Android

* In the center of the [Firebase console's project overview page](https://console.firebase.google.com/), click the **Android** icon to launch the setup workflow. If you've already added an app to your Firebase project, click **Add app** to display the platform options.

![](/files/-MVhUCm4i-W4zt1wDxuV)

* On the next screen, enter your **Android package name** & **App nickname** and click on **Register App**. Your package name is generally the **`applicationId`** in your app-level **`build.gradle`** file. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren’t visible to users.

![](/files/-MVhUR3pQCGuNUoW8cWB)

* Download the **`google-services.json`** file & place it in your project’s **`app`** root directory. Make sure the config file is not appended with additional characters, like **`(2)`**.

![](/files/-MVhUe8OsqtkYsHtROT_)

* Back in the Firebase console-setup workflow, click **Next** to skip the remaining steps.
* Run **`flutter packages get`**

## **iOS**

Configure an iOS app:

* In the **Add an app to get started** section, click on **iOS** Icon to add an iOS app to Firebase.

![](/files/-MVhWmAlimxGzE2zhPx6)

* On the next screen, enter your **iOS bundle ID** & **App nickname** and click on **Register App**. You can find your **Bundle Identifier** in the **General** tab for your app’s primary target in Xcode. If specified, the app nickname will be used throughout the Firebase console to represent this app. Nicknames aren’t visible to users.

![](/files/-MVhWtww9qWnNz3JoMaW)

* Download the **`GoogleService-Info.plist`** file. Make sure the config file is not appended with additional characters, like **`(2)`**.
* Using XCode, move the file into the `Runner/Runner` directory of your Flutter app.
* Back in the Firebase console setup workflow, click **Next** to skip the remaining steps.
* Run **`flutter packages get`**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://edentech.gitbook.io/glover/flutter-app/firebase.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
