Skip to main content
Answered

Intercom.client().getUnreadConversationCount() does not increment with new messages

  • 23 October 2024
  • 1 reply
  • 42 views

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?

Best answer by Emilygav

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 ☺️

View original
Did this topic help you find an answer to your question?

1 reply

Emilygav
Intercom Team
Forum|alt.badge.img+3
  • Intercom Team
  • 75 replies
  • Answer
  • November 1, 2024

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 ☺️


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings