Channel-level settings override user-level defaults for specific channels. Users can mute busy channels, enable notifications for important conversations, or customize notification behavior based on channel context.

Get Channel Settings

Retrieve the user’s current notification preferences:
let notificationManager = channelRepository.notificationManagerForChannel(withId: "<channel-id>")

notificationManager.getSettings { setting, error in
    
    if let error {
        return
    }
    
    if let setting {
        // Handle notification for channel
    }
    
}

Update Channel Settings

Modify notification preferences for a specific channel:
let notificationManager = channelRepository.notificationManagerForChannel(withId: "<channel-id>")

// Enable channel notification
notificationManager.enable { success, error in
    // Handle completion
}

// Disable channel notification
notificationManager.disable { success, error in
    // Handle completion
}

Settings Options

  • Messages - New message notifications
  • Mentions - When user is mentioned
  • Reactions - Message reactions and emoji responses