How to find your GCM Sender ID and GCM API Server key
Google Cloud Messaging is a service that allows you to send notifications to your applications and receive information from them. Your GCM Sender ID helps authenticate against CleverTap, allowing us to send push notifications on your behalf.
Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future.
Find your GCM Sender ID
Login to Google Developer Console and go to your Dashboard
If you have multiple projects on GDC, identify the applications whose GCM Sender ID you want to use.
Click on the project, the project number there is your GCM Sender ID.
Generate your GCM Server API Key
Login to Google Developer Console and navigate to Enable and Manage APIs section
Select Cloud Messaging for Android under Mobile APIs
First, enable the API. Then go to the Credentials section and Add a new API Key
Create a new Server Key
Name the key and whitelist provided IP Addresses, after you create the key here, it can take up to 10 mins for the settings to take effect.
Here is your API key! You’re now good to go.