maphongba008
maphongba008

Reputation: 2353

Detect XMPP Message is read/unread with Openfire

I'm developing a chat app that use XMPPFramework and Openfire Server. Is there any way to detect if a message is read or unread? I'm heard about XEP-0184, but it's only the message delivery (received or not).

Upvotes: 1

Views: 963

Answers (2)

Md Samiul Alim Sakib
Md Samiul Alim Sakib

Reputation: 1114

XEP-0184 (Delivery Receipt) used to ensure that message reached to the end user (user is online). For display notification you can use XEP-0085 (ChatStateEvent) or XEP-0022 (MessageEvent). Though XEP-0022 is deprecated and XEP-0085 is recommended.

Upvotes: 1

Bista
Bista

Reputation: 7893

How I achieved this by sending a special message when user opens the Unread chat.

And when the user receives that special message, it will get to know that the message has been read by other user.

Special Message should be unique: so that you can put a check on if it is received then it means message has been read.

Upvotes: 0

Related Questions