I have created this chat application with firebase realtime database and firebase authentication methods but i am really confused and I don\'t exactly know how to get the la
Create a room database in device. As soon as user opens the chat window, update the room database with the instantaneous date/time. Connect firebase with the room database using firebase sync intentservice and send that date/time to firebase. On the other device (which has send the chat message) the room will sync with firebase and ensure that user see some action when message is read. Refer to the link to sync room with firebase using intent service.