+ 1

How to Add some features notification and last seen etc in chat app?

I am creating chat app using django channels and it should work properly but I am stuck how to add notifications, last seen, message read etc in chat app. Can someone explain me?

23rd Jan 2022, 4:41 AM
đŸ’» Code_02🩁👑
đŸ’» Code_02🩁👑 - avatar
2 Respostas
+ 1
I dont know part with django, but in js you need to access data and display it on screen. Mostly json format is used for this, also you need to update data to backend part. For example you have 2 users talking. User1 send message to user2, you need to take message and more info, like who send message and who recieved it, time...You can set some id to each user and use in this case. Than data in database is updated, so for user1 (who sent message), you update sent messages list, for user2 (who recieve) you update recieved messages list, than send response back to js to update users screen. (You can maybe send just last message to app work faster) If you stuck watch some video, try to find some with same technology used.
26th Jan 2022, 12:53 AM
PanicS
PanicS - avatar
+ 1
Thanks for your time and opinions. I have do it.
30th Jan 2022, 1:54 PM
đŸ’» Code_02🩁👑
đŸ’» Code_02🩁👑 - avatar