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 :
a. Firstly, open the Firebase console.
b. Navigate to the view console.
c. Click on the ADD PROJECT, if you have not yet created a project.
d.Assign a name to the PROJECT and click on the continue button.
e. Activate the toggle button to enable the Google analytics and further click on the Continue button.
You can enable or disable the Google Analytics for your Firebase project as per your requirements.
g.You can find your Project by clicking on the PROJECT NAME.
h. Simply move to the top-left side section of the Firebase console and click on the PROJECT OVERVIEW.
Click on the Add app if your app is not yet registered.
a. Select an android platform.
b. Enter the details to register your app :
Android package name.
Click on the REGISTER app button once you enter all the details.
c. Next, Download the google-services.json file and add it to your Project’s app module folder. Further click on the Next button.
d. Configure the below dependencies and plugins in your app module and project module to connect with firebase.
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.
- Select your app under your project in Firebase Console. And click on the Settings icon to be redirected to the Project Settings page.
Select the Cloud Messaging tab to find out the SERVER KEY and SENDER ID for FCM.
Follow the above steps to generate the sender id and API key for FCM.
Updated 10 months ago