Get unread message count from group channel

For the messages send from push notification the groupchannel getUnreadCount still giving value as 0. whereas if not send from push notification groupchannel getUnreadCount is giving the count properly.
Please let me know does it reqiures any specific setting from dashboad or any thing else from code perspective.

Hi @Prerna_Kumari,

Welcome to the Sendbird Community! I’d love to help you dig into this issue. Could you tell me how you’re grabbing the getUnreadCount on the push notification? Additionally, could you provide me with the SDK and SDK version you’re using?

Hi,
Thanks for your response. From push Notification remote json message contain “channel_unread_message_count” inside channel object which is giving me the correct count whereas if i try to get directly from Groupchannel.getUnreadMessageCount() its not count the unread message that comes from Notification.

for example:
if I send one notification outside app, from remote json i will get “channel_unread_message_count”:1 whereas if i try to fetch the same from Groupchannel.getUnreadMessageCount() returns 0;

SDK version:
implementation ‘com.sendbird.sdk:sendbird-android-sdk:3.0.159’
implementation ‘com.sendbird.sdk:sendbird-syncmanager:1.1.30’
implementation ‘com.sendbird.sdk:sendbird-calls:1.5.3’

Hi @Prerna_Kumari,

My apologies for the delayed response. Let me take a look at this and see if I can reproduce the behavior.

Hi @Tyler

Any update on the issue.