Can I open news section whenever there is a passive notification in the news intercom-messenger-frame else hide it?
Can I open news section whenever there is a passive notification
Best answer by Paul Byrne
Hey
Yes, you can open the News area of the Messenger when the News tab has a passive notification and hide it otherwise, using Intercom’s JavaScript API.
The recommended approach is to detect unreadNewsItemsCount > 0 from the Messenger’s state and then call Intercom('showSpace', 'news') (or Intercom('showNews', <id>) for a specific item). If there are no passive notifications, either close the messenger (Intercom('hide')) or call Intercom('hideNotifications', true) to suppress badges.
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.
