Push Notification Integration
Visit Mobile Push channel configuration page for push notifications integration guidelines.
Last updated
Was this helpful?
Visit Mobile Push channel configuration page for push notifications integration guidelines.
Last updated
Was this helpful?
In order to send notifications to your mobile users using Growlytics platform, you will need to add FCM messaging listeners to your apps.
Register an Growlytics' FCM messaging service in android manifest file as mentioned in example below. If you have already registered FCM messaging service, you can call Growlytics's updateFCMToken()
and updateFCMToken()
methods.
In order to receive notifications in background, add a receiver as mentioned in example below. If you have already registered FCM messaging service, you can call Growlytics's onNotificationReceived()
method.
Visit Mobile for configuring FCM credentials.
Structure of the payload with a Growlytics FCM push notification.
Key
Data Type
Description
glytcs_pnf
boolean
If this field is present, means notification is received from Growlytics.
glytcs_id
string
Notification tracking id used by Growlytics.
glytcs_img
string
Url of an notification Image. If given, this URL will be used to show large image in notification.
glytcs_tl
string
Notification title, must be present or app name will be used as title.
glytcs_msg
string
Notification body, must be present, if not provided, notification will not be shown.
glytcs_chnl
String
Notification channel id, must be present and channel must be created by app, if given channel not registered, notification will not be rendered.
glytcs_dl
string
If present, this is a deep link that must be followed at the time of notification open.
glytcs_sbt
string
Notification sub-title, will be displayed next to app name in notification.
glytcs_clr
string
Color for small icon in notification. It Must be in hex or else color will be ignored.
glytcs_pr
string
Priority for push notification [Low, High, Max]
glytcs_dnr
boolean
If present, notification will not be shown, it will be ignore