Choose a push notification content template
Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: default
and alternative
. Go to Settings > Chat > Push notifications > Push notification content templates on Sendbird Dashboard to customize the templates.
If the push_message_template
property is specified when sending a message, the content template customized for the message takes precedence over the user's choice.
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. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
name | string | Specifies the name of a template used for notifications. Acceptable values are |
Responses
If successful, this action returns the name of a chosen notifications content template in the response body.
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.