Thursday, 17 November 2016

Steps to create GCM Server token for Android Push Notifications

Log on to Firebase and select a project
Log on to Firebase developer console - https://console.firebase.google.com/ with your google account. If you don’t already have an account, please create one and login to the console.

If your google account had projects that were created on the Google developer console - https://console.developers.google.com/ firebase dashboard provides an option to import selected projects here. Create a new project or select an existing one as need be.

Configure project
Select Notifications from the left navigation section and click on “Add firebase to your Android app”


Download Keys
On the next step, enter package name and SHA-1 Key along with any other configurations and add the application. ‘Google-services.json’ file will be downloaded. Copy this file to the project location.

After adding, go to Project Settings > Cloud Messaging and get the keys.



Use the above Server Key to enable Push Notification on the Moback dashboard and the sender ID on the SDK to subscribe to notifications on the device.


No comments:

Post a Comment