Skip to content

Firebase Cloud Messaging

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

This documentation refers to the legacy FCM API which was deprecated on June 20, 2023 and will be removed by Google in June 2024. For newer FCM HTTP API v1 see this document.


This document applies to Firebase Cloud Messaging version 6. For FCM version 5.x see this documentation: Firebase Cloud Messaging 5.x

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 the name of 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 main Firebase Console screen
  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 the Settings icon
  1. When project settings are opened, select "Cloud Messaging" from the tab menu.
Select Cloud Messaging
  1. To enable the Cloud Messaging API, select three-dot menu.
Select three-dot menu
  1. When clicked, you will be prompted to: "Manage API in Google Cloud Console". Select that option.
Manage API in Google Cloud Console
  1. When Google Cloud Console is opened, you should select "Enable" for your project. Once the Messaging API is enabled, you can go back to the Settings tab of your Firebase project. Refresh the screen to retrieve the keys.
Select Enable for your project
  1. Next, you to need go to the Cloud Messaging settings of your Firebase project and find the Server API key.
Find the Server API key

Obtaining Firebase Cloud Messaging credentials for an existing project

If you already have your project set up in the Firebase Console, then you can go directly to you project's Cloud Messaging settings and find the Server API key there.

Cloud Messaging credentials

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

Cloud Messaging credentials
Clone this wiki locally