Skip to content

Delayed Delivery

Publishers can specify the time when the message should be processed and delivered to subscribers. This can be done in addition to all other publishing options (basic publish, with headers. Scheduled messages can be canceled at any time using the message cancellation API.

DeliveryOptions deliveryOptions = DeliveryOptions();
DateTime publishDate = 20));
deliveryOptions.publishAt = publishDate;

Backendless.messaging.publish("This message was scheduled 20 sec ago", 
  deliveryOptions: deliveryOptions).then((response) {
    print("message has  been scheduled");