Properties:
Name | Type | Argument | Description |
---|---|---|---|
action |
String |
<optional> |
Notification action (`click_action` in FCM/GCM terms and `category` in APN terms) |
badge |
Number |
<optional> |
Number for the badge |
body |
String | Notification text | |
data |
PushNotification#ChatData | Additional Chat data | |
sound |
String |
<optional> |
Notification sound |
title |
String |
<optional> |
Notification title |
type |
PushNotification#NotificationType | Notification type |
Type Definitions
-
ChatData
-
Additional Chat data for given Push Notification
Type:
- Object
Properties:
Name Type Argument Description channelSid
String <optional>
SID of Channel messageIndex
Number <optional>
Index of Message in Channel messageSid
String <optional>
SID of Message -
NotificationType
-
Chat push notification type
Type:
- 'twilio.channel.new_message' | 'twilio.channel.added_to_channel' | 'twilio.channel.invited_to_channel' | 'twilio.channel.removed_from_channel'