Firebase Messaging
Google has integrated Google Cloud Messaging (GCM) into Firebase. API Keys generated through Google API Console are no longer valid.
Enabling Cloud Messaging and generating Server API Key
1 - Sign in into Google Firebase
2 - Select CREATE A NEW PROJECT
.
You can also import an existing GCM project using the option below the button.

3 - Type a name for your new project and select your country.

4 - After the project has been created, click on the gear icon and select "Project settings"

5 - Select CLOUD MESSAGING
. Here you will see two keys:

- The Server Key is needed to configure the service in the MOCA Console.
- The Sender ID should be used for the Android SDK configuration. (also known as GCM Sender Id).
Using the Key in the MOCA Console.
1 - Log in to your MOCA Account and go to Apps > app_to_be_configured > Settings > Services
2 - Select Add
in Google Cloud Messaging (GCM) and paste your server API Key there
- All done. You can now start sending notifications to your users using MOCA Platform to your Android users.