[Problem/Question]
-
We are managing our own Push notifications.
- As we have our own notification system and need the badge counts to match up.
-
We use Web hooks when a message is sent to fire off push notifications. (https://sendbird.com/docs/chat/platform-api/v3/webhook/events/group-channel#2-group_channel-message_send)
-
This works fine for groups as we can determine a users push notification status with
member.push_trigger_option
i.e:- If the member has
default
orall
the get a push - If they have @mention they get a push
- If the member has
-
We are now using Super Groups and would like to have the same implementation
-
However with super groups the web hook (https://sendbird.com/docs/chat/platform-api/v3/webhook/events/group-channel#2-group_channel-message_send) does not return members.
-
We are therefore required to call List members: (https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel)
- However this does not include
member.push_trigger_option
- However this does not include
-
So for each member we are then required to call: Get push notification preferences (https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel) :-/
This means that each time a message is sent in the chat we need to send 1 + number of members API requests. With 2k members that’s 2001 Api requests per message
This does not feel scalable and we will be hitting your API a lot.
Is it possible to have member.push_trigger_option returned in List members: (https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel). It feels like an omission?
Thanks.
Tom