Skip to main content

Hello,

I am experiencing an issue with the Intercom integration on Android. When I receive a message, the method "Intercom.client().getUnreadConversationCount()" does not reflect the new messages. For this function to work correctly, I need to restart the Android application.

Do you have any suggestions for resolving this issue?

Hey there @fairtaxfree, Emily here from Support Engineering πŸ‘‹πŸΌ
Β 

To resolve the issue with the Intercom.client().getUnreadConversationCount() not updating when new messages are received, you should ensure that you are listening for updates on the unread count. You can do this by using the Intercom.client().addUnreadConversationCountListener(listener) method in your Android application. This will allow you to set the count based on the response received and should update the unread message count without needing to restart the app.

Additionally, if you are using React Native, make sure to use the Intercom.getUnreadConversationCount() method and listen for updates with the Intercom.addEventListener method and the IntercomEvents.IntercomUnreadCountDidChange event. This will help you to programmatically set the count as new messages are received.

Hopefully this helps! Feel free to open up a support message with our team if you are continuing to encounter issues regarding your android integration ☺️


Reply