Skip to content

Get Message Status

Backendless server handles message publishing as an autonomous task. As a result, the final status of the message publishing operation is not available right away. To retrieve the status, the client application must make a separate API call as documented below:

Blocking API

MessageStatus messageStatus = Backendless.Messaging.GetMessageStatus( string messageId );

Non-blocking API

Backendless.Messaging.GetMessageStatus( string messageId, AsyncCallback<MessageStatus> callback );


Argument                Description
messageId  ID of the message assigned to the message and returned by the Message Publishing API request.

Return Value

Method returns an instance of com.backendless.messaging.MessageStatus. The object contains the following properties:

Argument                Description
messageId ID of the message for which the publishing status is retrieved.
status an enum instance of BackendlessAPI.Messaging.PublishStatusEnum consisting of the following values: FAILED, PUBLISHED, SCHEDULED, CANCELLED, UNKNOWN
errorMessage contains a detailed error message when status is PublishStatusEnum.FAILED.