Register FCM Keys

This document tells you how to create a Sender ID and API Key for Firebase Cloud Messaging.

In order to generate the sender ID and API key for FCM, follow the below steps :

CREATE FIREBASE PROJECT

a. Firstly, open the Firebase console.

1349

b. Navigate to the view console.

c. Click on the ADD PROJECT, if you have not yet created a project.

1346

d.Assign a name to the PROJECT and click on the continue button.

1364

e. Activate the toggle button to enable the Google analytics and further click on the Continue button.

1358

📘

You can enable or disable the Google Analytics for your Firebase project as per your requirements.

1365

g.You can find your Project by clicking on the PROJECT NAME.

1346

h. Simply move to the top-left side section of the Firebase console and click on the PROJECT OVERVIEW.

1346

REGISTER YOUR APP

Click on the Add app if your app is not yet registered.

a. Select an android platform.

1332

b. Enter the details to register your app :

  • Android package name.

  • App nickname

Click on the REGISTER app button once you enter all the details.

1344

c. Next, Download the google-services.json file and add it to your Project’s app module folder. Further click on the Next button.

1193

d. Configure the below dependencies and plugins in your app module and project module to connect with firebase.

1153 1218

Click on the Next button once you configure all the dependencies and plugins.

e. Click on the Continue to Console button to conclude the process of app registration.

1169
  1. Select your app under your project in Firebase Console. And click on the Settings icon to be redirected to the Project Settings page.
1351 1341

CONFIGURE SERVER KEY AND SENDER KEY

Select the Cloud Messaging tab to find out the SERVER KEY and SENDER ID for FCM.

1347

Follow the above steps to generate the sender id and API key for FCM.