send Media Message
Sends a multimedia message.
Before sending, construct a Message object where the content must be a multimedia message. For example: ImageMessage, FileMessage, or any other message that inherits from MediaMessageContent.
Parameters
The message entity to be sent.
This field will be displayed in the notification bar when a remote push notification is sent. If sending a custom message, this field must be filled in; 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 the getPushData method when they receive a remote push notification.
The callback for sending the message SendMediaMessageCallback.
Sends a multimedia message.
Construct a Message entity before sending. The content in the message entity must be a multimedia message. For example: ImageMessage, FileMessage, or other messages that inherit from MediaMessageContent.
Since
5.4.4
Parameters
The message entity to be sent.
When sending a remote push notification, this field will be displayed in the notification bar. If sending a custom message, this field must be filled; otherwise, the remote push notification will not be received. If sending default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, this field does not need to be filled 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 receiving a remote push notification.
The callback for sending the message SendMediaMessageCallback.
Additional options for sending the message. Currently, only isVoIPPush is supported. If the recipient device is iOS, setting isVoIPPush to True will push the notification via the VoIP channel.
To send multimedia messages, you can use this method to upload multimedia files to your own server.
When uploading a multimedia file, the callback onAttached will be triggered. This callback carries the object. Users only need to call the following methods within this object: update to update the progress success to update the success status and provide the file URL after successful upload error to update the failure status cancel to update the cancellation status
Parameters
The message object to be sent.
When sending a remote push notification, this field will be displayed in the notification bar. If sending a custom message, this field must be filled; otherwise, the remote push notification will not be received. If sending default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, RC:FileMsg, 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 receiving the remote push notification.
The callback for sending the message, which carries the object. Users can call methods within this object to update the status.
Sends a multimedia message, allowing you to upload multimedia files to your own server.
When uploading a multimedia file, the callback onAttached is triggered. This callback carries the object. Users only need to call the following methods from this object: update to update the progress, success to update the success status and provide the file URL after successful upload, error to update the failure status, cancel to update the cancellation status.
Since
5.4.4
Parameters
The message object to be sent.
When sending a remote push notification, this field will be displayed in the notification bar. If sending a custom message, this field must be filled; otherwise, the remote push notification will not be received. If sending default message types in the SDK, such as RC:TxtMsg, RC:VcMsg, RC:ImgMsg, RC:FileMsg, 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 receiving the remote push notification.
The callback for sending the message, which carries the object. Users can call methods from this object to update the status.
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 will be sent via the VoIP channel.