> 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](https://3968724849-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIFl0DrJkIFDEs_EPBE%2F-Lti4C9i8xuiKTCEredV%2F-Lti4eamu0VV4q8bt9-y%2Fimage.png?alt=media\&token=35ccd62f-9709-4430-bdb5-f2c05b1d0a34)

* &#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](https://3968724849-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LIFl0DrJkIFDEs_EPBE%2F-Lti4C9i8xuiKTCEredV%2F-Lti4jrhb4bYz_w8Hrmc%2Fimage.png?alt=media\&token=56452885-9434-4ce5-aac7-2af1f8a0bcb8)

## 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="https://3968724849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LIFl0DrJkIFDEs_EPBE%2Fuploads%2FhSxejqKnrzZ1aD9xagYh%2Fimage.png?alt=media&amp;token=2e9a5698-cc1f-4114-91cb-a40a69574712" 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="https://3968724849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LIFl0DrJkIFDEs_EPBE%2Fuploads%2F6uY69Y6DMDBE4Yb4D5N1%2Fimage.png?alt=media&amp;token=0bc18c9c-21ad-462f-91ae-2ee6dc905340" 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="https://3968724849-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LIFl0DrJkIFDEs_EPBE%2Fuploads%2F357s9K99UuVZ6D6H80D6%2Fimage.png?alt=media&amp;token=9c72b6f9-1a12-450d-8ed2-c538dfc850e9" alt=""><figcaption></figcaption></figure>
