Android FCM Integration
Firebase Cloud Messaging (FCM)
1

2



3


4


Last updated
Firebase Cloud Messaging is the official Android push channel provided by Google. It enables you to deliver reliable and fast push notification services to Android apps.
A Firebase project is required for push notifications. Hackle uses the Firebase Cloud Messaging V1 API to send pushes.
Follow the guide below to set up a Firebase project and generate a push key.
Create a Firebase Project
(Skip to the next step if you already have a Firebase project.)

Verify Firebase Cloud Messaging API (V1) Is Enabled
If you just created a new project, it is enabled by default and you can skip this step. However, if you are using a previously created Firebase project, you need to verify that the Firebase Cloud Messaging API (V1) is enabled.
Click the gear icon next to 'Project Overview' and select Project settings. On the Project settings page, select the Cloud Messaging tab.

If **Firebase Cloud Messaging API (V1)** is disabled, click the icon in the upper right corner to navigate to the API management page.

Click the Enable button.

Generate a Private Key JSON File
Navigate to the Service accounts tab in Project settings.
Click Generate new private key at the bottom of the page.

Then click Generate key.

Save the JSON file in a secure location. You will need it soon.
Required Permissions
The following service account permissions are required for push notifications to work:
cloudmessaging.messages.create
firebase.projects.get
Configure Android Push in the Hackle Dashboard
In the Hackle Dashboard, click the Integrate button for **Android Push Message (FCM)** under Settings > External Integration.

Select the JSON file downloaded in step 3 and save.

Last updated