Skip to end of metadata
Go to start of metadata

How do I configure push notifications for Android devices for Broadcast Campaigns?


Push notifications in Android rely on Google Cloud Messaging (GCM). When setting up your app, you also need to register with GCM in order to receive push notifications from the M3 backend.

To do so, follow the steps that can be found in Googles official documentation at:

  1. Create a project on Firebase console
    1. Choose 'Add Firebase to Android app'
    2. In the Firebase console, the package name should be the same as application id in build.grade
  2. The Firebase console creates a google-services.json file and downloads it to your default Downloads folder. Drag the downloaded google-services.json file to your Android project (as documented in
  3. Add the sender id to build.gradle of the app
    1. defaultConfig {
          resValue 'string''GCMSenderId''\"YOURSENDERIDHERE\"'}
  4. In the MAAS portal, for the newly created Android app, replace the API Key and sender id with the values for ServerKey and SenderId on the Firebase console (under CloudMessaging section)