-
Notifications
You must be signed in to change notification settings - Fork 16
Firebase Cloud Messaging
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
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.
- Go to Firebase Console and start creating a new project.
![Create new project](images/FirebaseFlow_0.png)
- Choose the name of your new project, then press "Continue".
![Choose the name of your new project](images/FirebaseFlow_1.png)
- Choose your Google Analytics preferences and then press "Create Project". Analytics are not used in MM SDK.
![Choose your Google Analytics preferences](images/FirebaseFlow_2.png)
- 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](images/FirebaseFlow_3.png)
- Enter the package name of your Android application and press "Register app".
![Enter Android project details](images/FirebaseFlow_4.png)
- 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](images/FirebaseFlow_5.png)
- 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](images/FirebaseFlow_6.png)
- 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](images/FirebaseFlow_7.png)
- On the main Console screen, click on the Android project you just created.
![Select created Android project](images/FirebaseFlow_8.png)
- Once clicked, you will be presented with the "Settings" icon. Click on the icon.
![Select the Settings icon](images/FirebaseFlow_9.png)
- When project settings are opened, select "Cloud Messaging" from the tab menu.
![Select Cloud Messaging](images/FirebaseFlow_10.png)
- To enable the Cloud Messaging API, select three-dot menu.
![Select three-dot menu](images/FirebaseFlow_11.png)
- When clicked, you will be prompted to: "Manage API in Google Cloud Console". Select that option.
![Manage API in Google Cloud Console](images/FirebaseFlow_12.png)
- 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](images/FirebaseFlow_13.png)
- 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](images/FirebaseFlow_14.png)
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](images/FirebaseConsoleMessagingCredentials.png)
To download the google-services.json
file, go to your project's General settings.
![Cloud Messaging credentials](images/FirebaseConsoleGoogleServicesFile.png)
If you have any questions or suggestions, feel free to send an email to [email protected] or create an issue.
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
Geofencing API- DEPRECATED- Android Manifest components
- Privacy settings
- In-app chat
- Infobip RTC calls and UI
- Backup rules