1. 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.

Head over to the Pusher dashboard and create a new instance of Beams. After that, you can either follow the interactive quickstart over there, or return here to follow the documentation steps.


Visual Walkthrough

To help you find your way around, this video mirrors the steps listed below.

Open Firebase Console

The first step is to go your Firebase console. Sign up if you haven't already.

Create a New App

If you are using a pre-existing Firebase app, you can jump ahead to Get Your FCM Server Key. Otherwise you will create one now.

To create a new app, you'll need to supply the name and region (0:03 ).

Then from your app's Overview page, click on the Android logo (0:13 ) and write your Android application's package name (0:18 ) to register your app in Firebase.

Download the Firebase Configuration File

Once the app is registered, you should click the button to download google-services.json (0:25 ).

Keep a note of the file's location, as eventually you will add it to your Android app's project on your computer.

Get Your FCM Server Key

Go to your Firebase project's settings page (0:38 ), and then go to the Cloud Messaging tab (0:46 ).
Now you can copy the FCM Server Key by clicking on the clipboard button (0:51 ).

If you are following the quickstart guide in the Pusher Beams dashboard, return to it now with your FCM Server Key.

This FCM Server Key can be saved to your Pusher Beams instance in the dashboard.

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.