we are facing an issue using the getUnreadMessageCount
function where it always return the unread count as 0 after using remoteProfile!.createReadSession(this).read(100)
, the steps to reproduce the issue we are facing:
- user1 logs in.
- user2 logs in and sends a message to user1 from another device.
- user1 receives the message and the
getUnreadMessageCount
function is working as expected. - user1 reads the messages sent by user2 using
remoteProfile!.createReadSession(this).read(100)
and the unread count gets reset to 0 as expected. - now user1 clicks on the back button to go to the homepage of the app and sees the unread count as 0.
- now user2 sends another message.
- user1 gets the message but
getUnreadMessageCount
function still returns 0 but it should not return 0 because we haven't read the new message yet by callingremoteProfile!.createReadSession(this).read(100)
- use 2 different devices for 2 users to reproduce this.