Class: PushNotification

PushNotification

Push notification representation within Conversations Client

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#ConversationData Additional Conversation data
sound String <optional>
Notification sound
title String <optional>
Notification title
type PushNotification#NotificationType Notification type

Type Definitions


ConversationData

Additional Conversations data for given Push Notification
Type:
  • Object
Properties:
Name Type Argument Description
conversationSid String <optional>
SID of Conversation
messageIndex Number <optional>
Index of Message in Conversation
messageSid String <optional>
SID of Message

NotificationType

Conversation push notification type
Type:
  • 'twilio.conversations.new_message' | 'twilio.conversations.added_to_conversation' | 'twilio.conversations.removed_from_conversation'