How to Add some features notification and last seen etc in chat app? | Sololearn: Learn to code for FREE!

+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?

1/23/2022 4:41:56 AM

💻 Code_02🦁👑

2 Answers

New Answer

+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.

+1

Thanks for your time and opinions. I have do it.