Firebase Cloud Messaging (FCM HTTP v1 API) - infobip/mobile-messaging-sdk-android GitHub Wiki


Configuring your application for Push Notifications over Firebase Cloud Messaging

Firebase Cloud Messaging is a cross-platform cloud messaging service which allows Infobip to send Push Messages from the Infobip server to your users’ Android-powered devices. You will need to create and configure a project in the Firebase Console to enable Push Notifications for your Android applications.

  1. Go to Firebase Console and start creating a new project.
  1. Choose the name of your new project, then press "Continue".
  1. Choose your Google Analytics preferences and then press "Create Project". Analytics are not used in MM SDK.
  1. After the new project is created, add Firebase to your Android app by selecting the Android icon on the overview screen.
  1. Enter the package name of your Android application and press "Register app".
  1. Now your Android app is added to Firebase Console, you can download the google-services.json file here.
  1. Here you can select "Next". *This code is already integrated in the SDK, no need for implementation.
  1. At this step you can select "Continue to Console", and you should be redirected to the main Firebase Console screen.

Obtaining the Private Key JSON file for Infobip Mobile Application profile

  1. On the main Console screen, click on the Android project you just created.
  1. Once clicked, you will be presented with the "Settings" icon. Click on the icon.
  1. When project settings are opened, select "Service Accounts" from the tab menu and click on the "Generate new private key" button.
  1. Confirm by clicking the "Generate key" button. The Private Key JSON file will be downloaded immediately.

Obtaining Firebase Cloud Messaging credentials for an existing Android project

To download the google-services.json file, go to your project's General settings.