/ SDKs / Flutter
Chat SDKs Flutter v3
Chat SDKs Flutter
Chat SDKs
Version 3
Sendbird Chat SDK v3 for Flutter is no longer supported as a new version is released. Check out our latest Chat SDK v4

Mark messages as delivered

Copy link

Delivery receipt can be used to see whether a message has been successfully delivered to all the intended recipients by the Sendbird server. To mark a message as delivered when an offline group channel member receives a push notification for the message from Firebase Cloud Messaging, use the markAsDelivered() method.

FirebaseMessaging.onMessage.listen((RemoteMessage message) {
    Sendbird.markAsDelivered({required Map<String, dynamic> data});

When a message is delivered to a group channel member who is online, the message is marked as delivered and other members who are online are notified of the delivery receipt through the onDeliveryReceiptUpdated() method of the channel event handler.

class MyClass with ChannelEventHandler {

    void onMessageReceived(BaseChannel channel, BaseMessage message)  {
    void onDeliveryReceiptUpdated(GroupChannel channel) {