Mute Notification

Overview#

Mute notifications allow users to control their notification preferences. Users can enable or disable mute settings globally or for specific chats. This feature provides flexibility in managing interruptions.

Enable/Disable Global Mute Settings#

Users can enable or disable global mute settings using the below method.

ChatManager.enableDisableMuteSettings(isMuteStatus);
ArgumentTypeDescription
isMuteStatusbooleantrue enables mute notifications and false disables them

Check Mute Notification Status#

To Retrieve the current mute notification status using the following method.

boolean isMuted = ChatManager.isMuteSettingsEnabled();

Update Chat Mute Status#

To Mute specific or multiple chats using the following method:

ChatManager.updateChatMuteStatus(jidList, muteStatus);
ArgumentTypeDescription
jidListList<String>List of chat JIDs to be muted or unmuted.
muteStatusbooleantrue to mute the specified chats, false to unmute them.

Note: Mute-related events are observed through callbacks. For more information on how to handle mute settings updates, check the callback details here.

caution

FlyCore.updateChatMuteStatus method was deprecated and will be removed in the future release. migrate to ChatManager.updateChatMuteStatus method to update mute chats.

FlyCore.updateChatMuteStatus(JID , MUTE_STATUS);
ArgumentTypeDescription
JIDStringjid of the chat user/ group
MUTE_STATUSbooleantrue, if you want to mute notifications for the chat