Get Last Seen in chats application

后端 未结 2 1887
一整个雨季
一整个雨季 2020-12-06 23:06

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

2条回答
  •  执念已碎
    2020-12-06 23:25

    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.

提交回复
热议问题