# How do I get the status of the switch for message notification

**URL:** <https://devforum.zoom.us/t/how-do-i-get-the-status-of-the-switch-for-message-notification/68747>\
**Category:** iOS\
**Tags:** faq-ios, meeting-sdk\
**Created:** [May 10, 2022, 9:48am UTC](https://devforum.zoom.us/t/how-do-i-get-the-status-of-the-switch-for-message-notification/68747 "2022-05-10T09:48:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangqi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wangqi/32/37127_2.png) [@wangqi](https://devforum.zoom.us/u/wangqi)\
**Post date:** [May 10, 2022, 9:48am UTC](https://devforum.zoom.us/t/how-do-i-get-the-status-of-the-switch-for-message-notification/68747/1 "2022-05-10T09:48:57Z")

</div>

**Description**  
How do I get the on/off state of a message notification in a meeting.

**SDK Version** : 5.10.1.3038

Steps to reproduce the behavior:  
There is a notification button in the upper right corner of the chat interface in the meeting. We want to get the status of this notification button, whether it is on or off. You can take a look at the screenshot we provided, with the location of the button marked on it.

**Screenshots**

 ![Snip20220510_5](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/0/e00624b56031c1f77703ecd9878842e14efb762b.png)  
 ![Snip20220510_6](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/a/aa203cc707723c8b3dfc9358e957f53121a3184c.png)

**Device Information** :  
Device Type: ( iPhone 6S)  
OS: (iOS 14.1)  
Xcode: 13.2.1

**Additional context**  
Is there any related API to get the closed and open status of chat message notifications.Looking forward to your reply, thank you.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 10, 2022, 8:15pm UTC](https://devforum.zoom.us/t/how-do-i-get-the-status-of-the-switch-for-message-notification/68747/2 "2022-05-10T20:15:35Z")

</div>

Hi @wangqi,

Unfortunately there is no way to access the state of chat notifications programmatically. Can you provide context around what you’re looking to accomplish so we can see if any workarounds might exist?

Thanks!

---

<div class="post-metadata">

**Author:** ![wangqi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/wangqi/32/37127_2.png) [@wangqi](https://devforum.zoom.us/u/wangqi)\
**Post date:** [May 11, 2022, 1:32am UTC](https://devforum.zoom.us/t/how-do-i-get-the-status-of-the-switch-for-message-notification/68747/4 "2022-05-11T01:32:10Z")

</div>

Thank you for your reply. Our application scenario is to display the message received by the user in the meeting interface (- (void)onInMeetingChat:(NSString \*)messageID). We need to decide whether the message he received is based on whether the notification is on or off. show it. The current situation is that no matter whether the user has turned off the message notification, this method - (void)onInMeetingChat:(NSString \*)messageID will have a corresponding message callback after receiving the notification. Looking forward to your reply, thank you very much.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 11, 2022, 9:02pm UTC](https://devforum.zoom.us/t/how-do-i-get-the-status-of-the-switch-for-message-notification/68747/5 "2022-05-11T21:02:08Z")

</div>

Hi @wangqi,

Got it, thanks for the explanation. It sounds like you’re trying to use this setting with your custom meeting UI. The notification setting is only meant to be used with the default meeting UI, which is why there isn’t currently a way of knowing when this setting is toggled. One workaround could be to implement your own chat UI, which would allow you to implement a notification toggle completely independent of the SDK.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 11, 2022, 7:02am UTC](https://devforum.zoom.us/t/how-do-i-get-the-status-of-the-switch-for-message-notification/68747/6 "2022-06-11T07:02:56Z")

</div>

Closed on June 11, 2022, 7:02am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
