# setPushTriggerOption based on group channel's custom type

**URL:** <https://community.sendbird.com/t/setpushtriggeroption-based-on-group-channels-custom-type/8490>\
**Category:** JavaScript\
**Tags:** push-notification\
**Created:** [October 25, 2023, 7:50am UTC](https://community.sendbird.com/t/setpushtriggeroption-based-on-group-channels-custom-type/8490 "2023-10-25T07:50:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoong\_Hong\_Choy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yoong_hong_choy/32/4326_2.png) [@Yoong\_Hong\_Choy](https://community.sendbird.com/u/Yoong_Hong_Choy)\
**Post date:** [October 25, 2023, 7:50am UTC](https://community.sendbird.com/t/setpushtriggeroption-based-on-group-channels-custom-type/8490/1 "2023-10-25T07:50:13Z")

</div>

**[Question]**  
// Detailed description of issue.  
Hi, is there any way to set push notification preference based on group channel custom type?

---

<div class="post-metadata">

**Author:** ![rahul](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rahul](https://community.sendbird.com/u/rahul)\
**Post date:** [October 25, 2023, 10:57am UTC](https://community.sendbird.com/t/setpushtriggeroption-based-on-group-channels-custom-type/8490/3 "2023-10-25T10:57:49Z")

</div>

Hello Yoong,  
Welcome to Sendbird community.  
Could you please share me the use case so that I can help you better.  
Please find the list of options which you can set. You can try the “all” option and see if this helps you:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/7/7f2ae9ea9899202bf0303ccf55333fa0c9f03433.png)

For more details , please refer the documentation- [Push notifications | Chat JavaScript SDK | Sendbird Docs](https://sendbird.com/docs/chat/sdk/v3/javascript/guides/push-notifications#2-notification-preferences)

---

<div class="post-metadata">

**Author:** ![Yoong\_Hong\_Choy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/yoong_hong_choy/32/4326_2.png) [@Yoong\_Hong\_Choy](https://community.sendbird.com/u/Yoong_Hong_Choy)\
**Post date:** [October 26, 2023, 2:27am UTC](https://community.sendbird.com/t/setpushtriggeroption-based-on-group-channels-custom-type/8490/4 "2023-10-26T02:27:37Z")

</div>

Hi Rahul, we are currently exploring the possibility of implementing a use case where users can mute selected channels with the same custom channel type. Specifically, we want to allow users to mute notifications from all channels with the product type. Based on my research, I found that we can update the notification preference for a channel and retrieve all channels with the same custom type, then update their notification preferences in a loop. However, I was wondering if there is an alternative approach to achieve this.

---

<div class="post-metadata">

**Author:** ![rahul](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rahul](https://community.sendbird.com/u/rahul)\
**Post date:** [October 26, 2023, 7:55pm UTC](https://community.sendbird.com/t/setpushtriggeroption-based-on-group-channels-custom-type/8490/5 "2023-10-26T19:55:29Z")

</div>

Hello Yoong,  
Please check below documentation and let me know if this helps:

> **[Mute users in channels by a custom channel type | Chat Platform API |...](https://sendbird.com/docs/chat/platform-api/v3/moderation/muting-a-user/mute-users-in-channels-by-a-custom-channel-type#1-mute-users-in-channels-by-a-custom-channel-type)**
>
> Guides for quick and easy integration of Sendbird Chat, Calls and Desk for iOS, Android, JavaScript, Unity, .NET and Platform API.
