chat21-ionic
chat21-ionic copied to clipboard
How to show badge as new message in chat list ?
Hi,

Can you please tell me, how you handle new message badge icon show ?
is it handled by firebase itself or handled by your code ?
it's handled by our code. The conversation model has is_new field. It's true if there are new messages in the converversation.
Can you please send me chats Objects screenshot for let me know where it should be set 'is_new' ?
and also how you changed back when chat is open ? Do you write specific code?
PING!!!
The field is_new = true is set here (server side) : https://github.com/chat21/chat21-cloud-functions/blob/master/functions/chat-api.js

The clients (ios, android, ionic,etc..) when receive the message update the field to false