Send Push Notification
Send push notification to a list of users
Headers
Private key to access the API.
Body
Schema representing push notification send request data.
Push notification message details.
Should send notification to Android device
Map of ISO 639 language code to corresponding body text in that language. Text supports personalization.
Should send notification to iOS device
Map of ISO 639 language code to corresponding title text in that language. Text supports personalization.
Campaign type
MOBILE_PUSH
Defines the action when notification is tapped
DEFAULT
, DEEP_LINKING
, RICH_LANDING
Notification long tap actions. iOS only
Array of notification action buttons
Action Id
Action to be performed on button tap
DEEP_LINKING
, RICH_LANDING
, DISMISS_NOTIFICATION
A flatmap for passing any additional arguments to the tap action
Url to be opened on button tap
Use webview for opening url
notification category name
type of action category
PREDEFINED_CATEGORY
, CUSTOM_CATEGORY
Array of notification action buttons
Action to be performed on button tap
DEEP_LINKING
, RICH_LANDING
, DISMISS_NOTIFICATION
A flatmap for passing any additional arguments to the tap action
Button label
Url to be opened on button tap
Url associated with the action for Android device
Channel on which the notification is sent. Android only
Increment notification badge by this number. iOS only
Url of the image to be displayed. Android only
A newer message with same collapseId will replace the older message if it is yet to be delivered to the device
Setting contentAvailable to true in a push notification payload indicates that the notification should be delivered to the device immediately, even if the app is in the background or not running. This allows the app to wake up in the background and perform tasks such as fetching new content or updating data without necessarily displaying a visible notification to the user. iOS only
Defines the priority and presentation style of the notification based on the content's urgency and relevance. iOS only
PASSIVE
, ACTIVE
, TIME_SENSITIVE
, CRITICAL
Url associated with the action for iOS device
A flatmap for passing any additional arguments to the tap action
Url of the large icon. Android only
Rich media type. iOS only
IMAGE
, AUDIO
, VIDEO
Normal priority messages are delivered immediately when the device is not sleeping. FCM attempts to deliver high priority messages immediately, allowing FCM to wake a sleeping device when necessary. Android only
NORMAL
, HIGH
A relevance score is a float value between 0 and 1 that developers can assign to each notification to indicate its importance relative to other notifications from the same app. The iOS system uses this score to determine the ordering of notifications within the Notification Summary. iOS only
SCORE_MAX
, SCORE_0_75
, SCORE_0_50
, SCORE_0_25
, SCORE_MIN
Rich media url. iOS only
Resource id of the small icon. Android only
custom sound for your notification. iOS only
Map of ISO 639 language code to corresponding subtitle text in that language
Time-to-live specifies how long the server cache the message for retry before it could be delivered to the mobile device
List of users to send the push notification to