on Delivery Report
abstract fun onDeliveryReport( @NonNull conversationId: String, @NonNull messageId: String, @NonNull deliveryReport: DeliveryReport)
Content copied to clipboard
Called when a message is delivered to a recipient, whether its a successful or a fail.
In same cases the deliveryReport parameter will be an instance of DeliveryReportAny, this case means that the message will not be delivered to any recipient in this conversation, so no need to wait for other deliveries. You can check the getReason, if it's equals to REJECTED_BY_FILTERING_SYSTEM then the deliveryReport is an instance of the DeliveryReportAny.
If you want more information about the delivery report you can use the following methods :
See also
Parameters
conversation Id
The conversation ID
message Id
The message ID
delivery Report
A model that contains all information related to the delivery like : recipient number, reason if the message is failed to deliver