Push Notification & Unread count

Hi there, what’s the best way to not receive notifications while the chat is open? When I’m actively chatting I don’t to be receiving notifications from the current channel!

Thanks in advance!

These look like the available options: toggling enable/disable options for a channel or observing unread count in the channel? Is the latter supposed to avoid sending notification since it’s aware that channel is currently open?

Would appreciate if anyone could shred some light on this?

Hello @chrisbay , Our team recommends the following approach:

  1. Call unregister push notification when the app is active.
  2. Call register push notification again when the app becomes inactive.

This process helps optimize the handling of push notifications. Let us know if further clarification is needed.

Hi there, thanks for getting back, although I think you are missing the issue I’m inquiring about!

I’m getting the new message notification while having the chat open. Usually, there shouldn’t be notifications sent since the user is actively participating and seeing/responding to messages. So how can I achieve that?

Regards

Hello @chrisbay , Thank you for your follow-up.

The behavior you described is the default functionality of our SDK, and disabling notifications for active chats is not currently supported. We appreciate your feedback and will consider it for future improvements.

Please let us know if you need further assistance.

Hello, thanks for getting back and clearing the current behaviour!

On the similar note, does the notification contain the channelId “When there is a new message in the users conversation”? So it could be used to deep link into the channel/conversation?

Regards,
Chris