Skip to main content

Do not disturb overview

The do not disturb (DND) feature controls whether users receive push notifications for missed messages when offline.

  • Client offline: By default, users receive push notifications for new messages. With DND enabled, the server does not trigger push notifications.
  • Client in background: Messages are received directly. Implement local notification banners based on your business logic.

Prerequisites

Verify that third-party push integration is complete and push services are enabled before using DND.

DND setting levels

The SDK supports multiple DND levels for direct, group, and system channels:

  • App-level DND — default for all users, lowest priority
  • By channel type — user-level, per channel type
  • By channel — user-level, per specific channel
  • Global DND — user-level, highest priority

DND levels (NotificationLevel)

EnumDescription
allMessageReceive notifications for all messages
noneNot set (initial state)
mentionOnly @ current user and @all messages
mentionUsersOnly @ current user messages
mentionAllOnly @all messages
blockedNo notifications

See Set DND by channel type and Set DND by channel for details.

Priority order

Global DND (user) > By channel type (user) > By channel (user) > App-level DND

API reference

SettingClient APIServer API
Global DNDGlobal DNDDND overview
By channel typeSet DND by typeSet DND by type
By channelSet DND by channelSet DND by ID