send Message
Sends a message based on the conversation type.
The message status and message body are returned through the methods in .Note: The message sending rate is limited to 5 messages per second.
Since
5.0.0
Parameters
The conversation type.
The conversation ID. Depending on the conversationType, this could be a user ID, discussion group ID, group ID, or chatroom ID.
The message content, such as TextMessage, ImageMessage.
The content displayed in the notification bar when a remote push notification is sent. This field must be filled for custom messages; otherwise, the remote push notification will not be received. For default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, this field is not required as it is already specified by default.
Additional information for remote push notifications. If this field is set, users can retrieve it via getPushData when they receive the push message.
The callback for sending the message. Refer to .
Sends a message.
The message status and body are returned via the methods in .Note: You cannot send more than 5 messages per second.
Since
5.0.0
Parameters
The message body to be sent.
When sending a remote push notification, this field is displayed in the notification bar. For custom messages, this field must be filled; otherwise, the remote push notification will not be received. For default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, this field is not required as it is already specified by default.
Additional information for the remote push notification. If this field is set, users can retrieve it via getPushData when receiving the remote push notification.
The callback for sending the message. Refer to .
Sends a message.
The status and body of the sent message are returned via the methods in .Note: The message sending rate is limited to 5 messages per second.
Since
5.0.0
Parameters
The message body to be sent.
The content displayed in the notification bar when a remote push notification is sent. This field must be filled for custom messages; otherwise, the remote push notification will not be received. For default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, this field is not required as it is already specified by default.
Additional information for the remote push notification. If this field is set, users can retrieve it via getPushData when they receive the remote push notification.
Additional options for sending the message. Currently, only isVoIPPush is supported. If the target device is iOS and isVoIPPush is set to True, the push notification will be sent via the VoIP channel.
The callback for sending the message, refer to .