Overview
Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost. Using FCM, clients can send notification messages to engage and retain users.
Supported Platforms
Platform |
|
iOS |
|
Android |
Plugin Features
Receive push notification messages.
Firebase Features
-
Global Notifications
-
Targeted Notifications
-
Segmented Notifications
-
Customized notifications
-
Scheduling
-
A/B Testing
Prerequisites
-
Firebase account
-
App registered in Firebase (iOS and Android separately)
Register your app in Firebase
Android
1.- Go to your Firebase project home page and select the proper platform.
2.- Enter the package name and nickname for your app and register.
3.- Download the google-services JSON file (You can download it later. It will be available in the app’s settings)
Download your app’s google-services JSON file
1.- Go to your app’s settings.
2.- Download your app’s JSON file.
iOS
1.- Go to your Firebase project home page and select the proper platform.
2.- Enter the bundle ID and nickname for your app and register.
3.- Download the GoogleService-info.plist (You can download it later. It will be available in the app’s settings). Keep in mind this is only required for the release version of your app, debug apps can test cloud messaging without the file.
Download your app’s google-services JSON file
Android
1.- Go to your app’s settings.
2.- Download your app’s JSON file.
iOS
1.- Go to your app’s settings.
2.- Download your app’s JSON file.
Adding the plugin to your application
1.- Go to the plugin configuration section of the specific app version in Zapp and add the plugin.
2.- Android Only. Return to your app home page and go to the general section of the specific app version. Find the firebase configuration field and upload your google-services JSON file.
3.- iOS Only - Push Notifications will not work unless you add the Firebase Base Settings 2.0 and upload your google-services JSON file in both Enterprise & Production App Configuration
Please bear in mind, if you need to test debug builds to support receiving notifications, go to the plugin configuration and enable “Allow EnterpriseRich Push Notifications“.
If you are ready to release your app, upload the plist file downloaded through the Firebase console.
Send your first notification
1.- Go to your Firebase Project and find the Cloud Messaging section.
2.- Personalize your message. Please keep in mind, adding an image is available from the Blaze plan.
3.- You can target specific demographics.
4.- Schedule your message.
5.- Add additional options if needed.
6.- Review and publish.
For more information about Cloud Messaging please refer to the official Firebase documentation (https://firebase.google.com/docs/cloud-messaging).
Comments
0 comments
Article is closed for comments.