> For the complete documentation index, see [llms.txt](https://docs.growlytics.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.growlytics.in/channels/mobile-push-notifications/configure-fcm-channel.md).

# Configure FCM Channel

Sending push notifications to Android devices is done via [Firebase Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/). Detailed configuration steps to setup firebase cloud messaging are given below.

## Step1: Generate FCM Credentials

In order to use Firebase messaging, you'll need to generate a .JSON server key, which you enter in the push notification settings. Steps are given below.

* Make sure that the Firebase Cloud Messaging API is enabled for your project. You can [check that here](https://console.developers.google.com/apis/api/fcm.googleapis.com/overview).
* Log into the Firebase Console for your project.
* Head into your Project settings by clicking on the gear icon in the sidebar:

![Open Project Settings](/files/-Lti4eamu0VV4q8bt9-y)

* &#x20;Select the **Service Accounts** tab and click on the **Generate New Private Key** button. You will see a confirmation dialog after which the prompt to download the credential file should appear

![Generate Key File](/files/-Lti4jrhb4bYz_w8Hrmc)

## Step 2: Configure FCM credentials on Growlytics Dashboard

* Login to Growlytics Dashboard.
* Go to Integrations => Mobile Push Notifications.
* Click on "Android FCM" tab.

  <figure><img src="/files/naq92yxScpkkM4qXLc7D" alt=""><figcaption></figcaption></figure>
* Next, click on "Configure FCM Push" button. You will see a popup to provide private key file generated from firebase admin dashboard. Upload the file and click on save changes button.&#x20;

  <figure><img src="/files/gGOyfHY4vTaFZtLnnmP4" alt=""><figcaption></figcaption></figure>

## Step 3: Enable FCM Capablity in GCP Console

Once the JSON is configured, FCM should be enabled in the [cloud console](https://console.cloud.google.com/apis/library/fcm.googleapis.com)

<figure><img src="/files/kTbFqsoglrr2pA2Nn81g" alt=""><figcaption></figcaption></figure>


---

# 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://docs.growlytics.in/channels/mobile-push-notifications/configure-fcm-channel.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.
