Skip to content

Firebase Cloud Messaging (FCM HTTP v1 API)

Tereza Jurić edited this page Mar 19, 2024 · 3 revisions

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.
Create new project
  1. Choose the name of your new project, then press "Continue".
Choose name for your new project
  1. Choose your Google Analytics preferences and then press "Create Project". Analytics are not used in MM SDK.
Choose your Google Analytics preferences
  1. After the new project is created, add Firebase to your Android app by selecting the Android icon on the overview screen.
Add Firebase to your Android app
  1. Enter the package name of your Android application and press "Register app".
Enter Android project details
  1. Now your Android app is added to Firebase Console, you can download the google-services.json file here.
Android app is added to the Firebase Console
  1. Here you can select "Next". *This code is already integrated in the SDK, no need for implementation.
This code is already integrated in the SDK
  1. At this step you can select "Continue to Console", and you should be redirected to the main Firebase Console screen.
Redirect to the Firebase main 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.
Select created Android project
  1. Once clicked, you will be presented with the "Settings" icon. Click on the icon.
Select on the Settings icon
  1. When project settings are opened, select "Service Accounts" from the tab menu and click on the "Generate new private key" button.
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.
Click the Generate key button

Obtaining Firebase Cloud Messaging credentials for an existing Android project

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

Clone this wiki locally