The community forums are in BETA and closed to the public.

How can we manage message seen or unseen status ?

I am creating one 2 one chat application in android. How can we manage message seen or unseen status ?.

Give each message a unique ID, like "message1234." When a user "sees" a message, publish a new message that says "lastSeen: message1234." This way you can keep track of how far the user has read.

To show this every time a user loads the app, replay the "lastSeen" messages with PubNub history: http://www.pubnub.com/docs/web-javascript/storage-and-history?utm_source=ProgWeb&utm_medium=article&utm_campaign=Chat_10_Lines


Comments to this discussion are now closed!