Hi,
We are developing a React Native app with Intercom integration using the https://www.npmjs.com/package/@intercom/intercom-react-native package. We want to get the unread message count for a user to show a notification when the app is open and the user receives a new Intercom message.
We have tried using the addEventListener with IntercomEvents.IntercomUnreadCountDidChange but the passed in callback does not get invoked when new messages are received. We also tried calling the getUnreadConversationCount method and that returns the initial count of messages when our app starts and the user is logged in into Intercom, but subsequent calls always returns the initial value event when new messages are received in Intercom. Calling logout and login again in Intercom and then calling getUnreadConversationCount returns an updated count, so it looks like a bug in your code, or are we doing something wrong on our end?
Thank you,
Mikael Amborn