How to Enable Firebase Cloud Messaging in your Android app
This procedure is broken down into two parts:
- Enable Firebase for your app and generate the necessary IDs (API key and Sender ID).
- Enter the proper IDs (API key,google-services.json and Sender ID) in the Firebase Play Developer Console to link them to your app.
How to Enable Firebase Cloud Messaging (FCM) in the Firebase Developers Console
2. Click "Add Project."
3. Enter your Project name and select your region.
The "Project name" can be anything you want to name it, we recommend naming it something similar to your app's name to make it easily identifiable for later if necessary.
4. After the project is created, click the settings "gear" icon in the upper left and select "Project settings".
5. Click on the "Cloud Messaging" tab.
On this page, you will find your "Server key" (API key) and "Sender ID".
6. Add Firebase to your Android app.
7. Configure the Firebase Android app.
8. Configure the Firebase Android app.
Download google-service.json and move into your Android app module root directory.