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.