Add onUnreadNewsItemsCount to the Web Messenger SDK | Community
Skip to main content
Submitted

Add onUnreadNewsItemsCount to the Web Messenger SDK

Related products:Messenger
  • November 8, 2023
  • 3 replies
  • 29 views

The JS SDK of the Intercom Messenger in browsers can accept listeners with `onUnreadCountChange`, which could be used to reproduce the "red dot" on custom launchers.

However, since the release of newsfeeds and news items, Intercom Messenger also displays the red dot when there are unread news items. This data cannot be obtained through the SDK not the API, which means that custom launchers cannot reproduce the red dot anymore.

This can be fixed by adding the operation `onUnreadNewsItemsCountChange`, which would behave like `onUnreadCountChange` but for news items instead of messages.

3 replies

Jennifer K
Intercom Team
Forum|alt.badge.img+3
  • Intercom Team
  • November 27, 2023
NewNot planned yet

  • New Participant
  • November 12, 2024

There is a valid use case where two separate launchers are used for different purpose: one for support and another for news. In this case, we would like the red dot (badge) to be displayed in the news launcher if there are unread news posts. Without that ability, our users don’t know if news posts have been published and therefore stops using this launcher after some period.


At the moment we are proxying the Intercom SDK and hot-patching it. It is very brittle, but implementing this took only a few lines of code changes.

It took us less than an hour to do. I expect such an improvement to be very quick to develop on your end.

Note that this is also somewhat of a regression, as it is not possible anymore to determine through the SDK whether the widget would show a red dot.