> For the complete documentation index, see [llms.txt](https://assetstore.essentialkit.voxelbusters.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.essentialkit.voxelbusters.com/v2/notification-services/setup/android.md).

# Android

On Android, Plugin uses FCM (Firebase Cloud Messaging) service under the hood for registering to push notifications.

For making FCM to work, only thing you need to do is to copy the **google-services.json** file from Firebase console to **Assets folder.**&#x20;

Please follow the below steps for getting **google-services.json** file.

1. Open [Firebase](https://firebase.google.com/) website
2. Click on Go to Console
3. Select your project (if you don't find one, create a new one)
4. Next to Project Overview, click on settings gear icon
5. Under General tab, go to "Your apps" (If you don't have an app added, add it)
6. Select your app and click on the "google-services.json" button&#x20;
7. Copy the downloaded **google-services.json** file to your unity project's **Assets** folder

{% hint style="success" %}
For extra security, its good to add your app's fingerprint in the "Your apps" section and then download the json file.
{% endhint %}

### Sending notifications from your server

For sending a notification to user's device from your server, you need to send the message to FCM servers. FCM servers routes the message to the required device.

In order to let your server communicate with FCM servers, they need to be authenticated. For authentication, you need to use the "Server Key". Please check below steps on getting server key

1. Open [Firebase](https://firebase.google.com/) website
2. Click on Go to Console
3. Select your project (if you don't find one, create a new one)
4. Next to Project Overview, click on settings gear icon
5. Select **Cloud Messaging** tab
6. Copy and use **Server Key** in your server


---

# 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://assetstore.essentialkit.voxelbusters.com/v2/notification-services/setup/android.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.
