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

# Firebase Setup

#### Chat SDK Firebase

1. Go to the [Firebase](http://firebase.com/) website and sign up or log in
2. Go to the [Firebase console](https://console.firebase.google.com/) and make a new project
3. Click **Add project**
4. Choose a name and a location
5. Click **Settings** (the gear icon). On the General tab, click **Add App -> Add Firebase to your Android app**
6. Enter your package name - found in your app's `build.gradle` file, app name and SHA-1 key (required for phone sign-in)
7. Download the **google-services.json** file and add it to your app project. It should be added inside the `app` folder.
8. In the Firebase Console click Database, scroll down and create a new **Realtime Database** -> **Start in test mode**
9. In the Firebase dashboard click **Authentication -> Sign-in method** and enable all the appropriate methods&#x20;
10. Enable push notifications: [Push Notifications](https://github.com/chat-sdk/chat-sdk-firebase#enable-push-notifications)
11. Enable the security rules: [Enabling Security Rules](https://github.com/chat-sdk/chat-sdk-firebase#deploy-the-firebase-rules).
12. Setup storage rules: [Storage rules](https://github.com/chat-sdk/chat-sdk-firebase#deploy-the-storage-rules)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://chat-sdk.gitbook.io/android/setup/untitled.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
