Configure FCM

Pusher relies on Firebase Cloud Messaging (FCM) to deliver push notifications to Android application users on your behalf. When we deliver push notifications, we use your FCM credentials. This page guides you through the process of getting an FCM Server Key and how to provide it to Pusher.

Open Firebase Console

The first step is to go your Firebase console.

You'll now need to either create a new app, or use an existing one. If you're using one you already own, then you can jump to Get Your FCM Server Key.

Create a New App

To create a new app, you'll need to supply the name and region . Then, click on the Android logo and write your Android application package name to register your app in Firebase.

Download the Firebase Configuration File

Once the app is registered, you should click the download google-services.json .

You need to move this file to your Android app project directory. After doing this, your application will be ready to use FCM.

Get Your FCM Server Key

Open the project on the settings page , and then go to the Cloud Messaging tab . Now you can copy the FCM Server Key by click on the clipboard button .

Now go to the Pusher Beams instance in the dashboard, and use this FCM Server Key to configure your Android integration.

Where Next?

Now that you have configured FCM you can integrate our Android SDK into your project.

Did you find this document useful?

We are always striving to create the most accurate and informative docs as possible. If there is something especially wrong (or right) here then please let us know.