Configure push notification preferences
By registering or unregistering the current user's registration token to the Sendbird server as below, you can turn push notifications on or off in the user's client app. The registration and unregistration methods in the code below should be called after a user has established a connection with the Sendbird server.
If you want to routinely turn off push notification on the current user's client app according to a specified schedule, use our SetDoNotDisturb
feature like the following.
Note: The
SetDoNotDisturb
feature can also be set for a user with our update push notification preferences API.
To snooze notification messages for a specific period of time, use our SetSnoozePeriod
feature as below.
Note: The snooze notifications can also be set for a user through an API request to update push preferences.