Setting up your FCM keys (previously called GCM)
Modified on: Wed, 26 Oct, 2016 at 5:59 PM
Important: Please note that FCM (Firebase Cloud Messaging) was previously called GCM (Google Cloud Messaging). Since the implementation of FCM, the process itself has become simplified.
What's an FCM key and why do I need one?
Chrome needs you to log in with your Google credentials for a free FCM account in order to send push notifications. It is not a strict necessity that you have your own FCM account, but we recommend that you do.
PushCrew provides an option to export your subscriber list to a different platform. But that cannot happen if you do not have your own FCM keys. However, you will still be able to send notifications with PushCrew without any difficulty. If you want the convenience of moving or exporting your subscriber base, whenever you wish, you are advised to create your own FCM account.
If you don’t create your own FCM key, PushCrew gives you its own Google API key (Server key). However, this situation has its own limitations. If you create your FCM key after gaining a few subscribers, then you can export only those subscribers that you collected with your own FCM keys.
Another important footnote here is that currently, you can add as many subscribers and push notifications on a single FCM key; Google has not specified any constraints. But in the future, Google just might limit these numbers. And if this happens, you’ll have to share the limit on PushCrew’s subscriber base with our other clients who are availing PushCrew's FCM key..
Therefore, you are strongly advised to create your own FCM account, and add the FCM Project Number (Sender ID) and FCM API key (Server key) to your push notifications account.
Note: Having your own FCM key is strictly required for native implementation.
How to set up your own FCM keys:
Please follow the steps mentioned below.
1) Log in with your Google Account
Open https://console.firebase.google.com/ and log in using your Google account (if the page asks you to do so).
2) Click on Create New Project
In the next box that appears, click on Create New project.
3) Compose the Project Name and select your country/region
You’ll now be prompted with a modal box like the one shown below. Under Project name, write the name you want and below that, select your Country/region. Once you’ve done this, click on the Create Project.
4) Click on Settings icon and then click on Project Settings
Now, on the left side of the panel, next to your project name (and below “Firebase”), you’ll see the Settings icon. Click on it. Now, click on Project settings. Please refer to the images below.
5) Click on Cloud Messaging
On the central pane, you’ll see multiple options. Among these, click on Cloud Messaging.
6) Copy the Server key and Sender ID and leave this tab open
You’ll now see the following screen, wherein you'll see your Server key and Sender ID highlighted by the red boxes, in the image below. Copy it. And leave this tab open.
7) Click on Project Number & API key on PushCrew dashboard
Open a new tab, and log into your PushCrew account. Click on Settings, on the left side of the panel. From the drop-down, click on Project Number & API Key.
8) Paste Sender ID and Server key and click on Use my key
Now, paste the items you copied from step 8, as mentioned below. Please refer to the image below.
Paste the Sender ID in the first box from left.
Paste the Server Key in the second box from left.
Finally, click on Use my key, in the green box.
Note: It's important that you follow these directions carefully. If you enter the wrong Sender ID or Server key, your delivery rate will drop down significantly. And you'll not be able to export your subscriber list.
Did you find it helpful?
Sorry we couldn't be helpful. Help us improve this article with your feedback.