Get push notification preferences for a channel
You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured.
Note: Push notifications are only available for group channels.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Name | Type | Description |
---|---|---|
user_id | string | Specifies the unique ID of a user. |
channel_url | string | Specifies the URL of a group channel. |
Responses
If successful, this action returns notifications preferences for a channel in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
push_trigger_option | string | The type of notification trigger applies to the group channels when the user is disconnected from Sendbird server. Valid values are the following: |
push_sound | string | The name of the sound file to be played when a notification is delivered to the specified channel. |
| boolean | (Deprecated) Indicates whether notification messages for the user are delivered to the group channel. |
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.