FCM setup for Android Push Notifications – Ankush Aggarwal – Medium
original source : https://medium.com/@ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd
FCM setup for Android Push Notifications
Firebase Cloud Messaging (earlier known as Google Cloud Messaging — GCM) is a mobile service developed by Google that enables third-party application developers to send push notifications to users. Below are the steps to create SERVER_KEY and SENDER_ID require to send push notification.
Create a Firebase Console Project
- Login to Firebase Console and create a new project

- Enter a project name and click Create

- Go to Project Settings from menu on the left

- Click on Cloud Messaging and note down the SERVER_KEY and SENDER_ID highlighted in red box below

Boom! SENDER_ID will be used by mobile device to register device token to server and SERVER_KEY will be used by server to send push notification to mobile device.