User Event Handler Not Working

Hello,

I’m trying to user user event handler as mentioned here in my Android app. The issue here’s is that the callback onTotalUnreadMessageCountChanged is not being invoked. I tried multiple scenarios like connected and disconnected states. I’m making use of SDK v3.0.139. Is there anything I’m missing here?
Thanks in advance.

Cheers.

@Asem Please can you DM me your app id. I will check if you have the feature turned on.

@Jason can you please guide me to where to look for this on dashboard?

@Asem Hi. Sorry I should have mentioned. The setting change it is not a Dashboard setting.

If you have an older app it will need a backend change from a Solutions Engineer like myself. When did you create the app, please?

@Jason no problem. My app was created in early 2019.

Also, does this feature has any impact on billing?

@Asem I think found your app. The unread count push feature is turned off. This is because your app was created prior to the onTotalUnreadMessageCountChanged being on be default. This is not a premium feature, there is no extra charge.

Because of Sendbird security please can you direct message me your app_id requesting for the the onTotalUnreadMessageCountChanged to be turned on. Alternatively you can file a ticket through your dashboard. :slight_smile:

1 Like

@Jason Just filed a ticket. Sharing the ticket id on direct message.

Thanks for filling a ticket. Test application has this attribute enabled now. For more assistance, please respond to your support ticket. Thanks!

1 Like

@Jason @walter.rodriguez thanks for the update. The callback has started to work now. Now, what my app’s requirement is to know the unread messages count against the conversation(s). Since, there’s not much information on onTotalUnreadMessageCountChanged in the docs, I’m assuming that Map<String, Integer> totalCountByCustomType is what I’m looking for. The problem, I’m facing here, is that this map is always empty in my testing. Can you please provide more information on it.

This parameter is currently used internally.

Hi. I am using ios Chat SDK.
And seems I have the same behavior that SBDUserEventDelegate’s method

func didUpdateTotalUnreadMessageCount(_ totalCount: Int32, totalCountByCustomType: [String: NSNumber]?)

returns empty dictionary for the argument totalCountByCustomType.
Does it mean that we still can’t use this parameter for the applications?
So, should I call function getTotalUnreadMessageCountWithParams multiple times with different channelCustomTypesFilter to get what I need?