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.
![IMAGE ONE.png 1349](https://files.readme.io/3040546-IMAGE_ONE.png)
b. Navigate to the view console.
c. Click on the ADD PROJECT, if you have not yet created a project.
![Blur-Image.jpg 1346](https://files.readme.io/b2108bb-Blur-Image.jpg)
d.Assign a name to the PROJECT and click on the continue button.
![IMAGE THREE.png 1364](https://files.readme.io/e1d946f-IMAGE_THREE.png)
e. Activate the toggle button to enable the Google analytics and further click on the Continue button.
![IMAGE FOUR.png 1358](https://files.readme.io/c1d94c9-IMAGE_FOUR.png)
You can enable or disable the Google Analytics for your Firebase project as per your requirements.
![IMAGE FIVE.png 1365](https://files.readme.io/050efd5-IMAGE_FIVE.png)
g.You can find your Project by clicking on the PROJECT NAME.
![IMAGE SIX.png 1346](https://files.readme.io/857f564-IMAGE_SIX.png)
h. Simply move to the top-left side section of the Firebase console and click on the PROJECT OVERVIEW.
![IMAGE SEVEN.png 1346](https://files.readme.io/054c7fe-IMAGE_SEVEN.png)
REGISTER YOUR APP
Click on the Add app if your app is not yet registered.
a. Select an android platform.
![IMAGE EIGHT.png 1332](https://files.readme.io/e0d1c10-IMAGE_EIGHT.png)
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.
![IMAGE NINE.png 1344](https://files.readme.io/a360eb5-IMAGE_NINE.png)
c. Next, Download the google-services.json file and add it to your Project’s app module folder. Further click on the Next button.
![IMAGE TEN.png 1193](https://files.readme.io/eebc564-IMAGE_TEN.png)
d. Configure the below dependencies and plugins in your app module and project module to connect with firebase.
![IMAGE 11.png 1153](https://files.readme.io/5add9d5-IMAGE_11.png)
![IMAGE 12.png 1218](https://files.readme.io/e07c0eb-IMAGE_12.png)
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.
![IMAGE 13.png 1169](https://files.readme.io/67cd85a-IMAGE_13.png)
- Select your app under your project in Firebase Console. And click on the Settings icon to be redirected to the Project Settings page.
![Text-Blur.jpg 1351](https://files.readme.io/e7f7383-Text-Blur.jpg)
![IMAGE 15.png 1341](https://files.readme.io/150fcf6-IMAGE_15.png)
CONFIGURE SERVER KEY AND SENDER KEY
Select the Cloud Messaging tab to find out the SERVER KEY and SENDER ID for FCM.
![IMAGE 16.png 1347](https://files.readme.io/30021a6-IMAGE_16.png)
Follow the above steps to generate the sender id and API key for FCM.
Updated 11 months ago