Optional
idThe notification identifier to reference this object later. Must be a 32-bit integer.
Optional
channelIdentifier of the Channel that deliveres this notification.
If the channel does not exist, the notification won't fire. Make sure the channel exists with listChannels and createChannel.
Notification title.
Optional
bodyOptional notification body.
Optional
scheduleSchedule this notification to fire on a later time or a fixed interval.
Optional
largeMultiline text.
Changes the notification style to big text.
Cannot be used with inboxLines
.
Optional
summaryDetail text for the notification with largeBody
, inboxLines
or groupSummary
.
Optional
actionDefines an action type for this notification.
Optional
groupIdentifier used to group multiple notifications.
Optional
groupInstructs the system that this notification is the summary of a group on Android.
Optional
soundThe sound resource name. Only available on mobile.
Optional
inboxList of lines to add to the notification.
Changes the notification style to inbox.
Cannot be used with largeBody
.
Only supports up to 5 lines.
Optional
iconNotification icon.
On Android the icon must be placed in the app's res/drawable
folder.
Optional
largeNotification large icon (Android).
The icon must be placed in the app's res/drawable
folder.
Optional
iconIcon color on Android.
Optional
attachmentsNotification attachments.
Optional
extraExtra payload to store in the notification.
Optional
ongoingIf true, the notification cannot be dismissed by the user on Android.
An application service must manage the dismissal of the notification. It is typically used to indicate a background task that is pending (e.g. a file download) or the user is engaged with (e.g. playing music).
Optional
autoAutomatically cancel the notification when the user clicks on it.
Optional
silentChanges the notification presentation to be silent on iOS (no badge, no sound, not listed).
Optional
visibilityNotification visibility.
Optional
numberSets the number of items this notification represents on Android.
Options to send a notification.
Since
2.0.0