Skip to main content
Delivery and read receipts track whether messages have been delivered to and read by recipients.

Mark as Delivered

Use markAsDelivered() to mark messages as delivered. You can pass either a message object or individual parameters.

Using Message Object

Using Parameters

This method marks all messages before the specified messageId for the conversation with receiverId and receiverType as delivered.
Starting v3, messages are not marked delivered internally by the SDK. You must use markAsDelivered() explicitly.

Mark Conversation as Delivered

Use markConversationAsDelivered() to mark all messages in a conversation as delivered.

Mark as Read

Use markAsRead() to mark messages as read. You can pass either a message object or individual parameters.

Using Message Object

Using Parameters

Mark Conversation as Read

Use markConversationAsRead() to mark all messages in a conversation as read.

Real-Time Receipt Events

Implement CometChatMessageDelegate to receive delivery and read receipt events.
You will receive events in the form of MessageReceipt objects:
The following features require Enhanced Messaging Status to be enabled for your app:
  • onMessagesDeliveredToAll event
  • onMessagesReadByAll event
  • deliveredAt field in group messages
  • readAt field in group messages
  • markMessageAsUnread method

Get Receipt History

Use getMessageReceipts() to fetch delivery and read receipts for a specific message. Useful for group messages to see which members have received/read the message.
Returns an array of MessageReceipt objects.

Missed Receipts

When fetching messages, each message object includes deliveredAt and readAt timestamps indicating when the message was delivered and read. For group messages, use getMessageReceipts() to fetch individual member delivery and read status.

Mark as Unread

Use markMessageAsUnread() to mark a message as unread. This is useful for “mark as unread” functionality in conversation lists.
You cannot mark your own messages as unread. This method only works for messages received from other users.

Next Steps

Typing Indicators

Show real-time typing status in conversations

Receive Messages

Listen for incoming messages in real time

Retrieve Conversations

Fetch conversation list with unread counts

All Real-Time Listeners

Complete reference for all SDK event listeners