Add an FCM push configuration
Registers an FCM (Firebase Cloud Messaging) push configuration for client apps. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations on the Sendbird Dashboard under Settings > Chat > Push notifications.
HTTP request
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
api_key | string | Specifies the FCM server key. |
Optional | Type | Description |
---|---|---|
push_sound | string | Specifies the name of a sound file to be played when a push notification is delivered to client apps. The file should be located in the |
Response
If successful, this action returns the information about the registered FCM push configuration in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
push_configurations[] | array of objects | A list of FCM, HMS, or APNs push configurations. |
push_configurations.(provider).id | string | A unique provider ID of the push configuration. This is automatically generated by Sendbird. |
push_configurations.(provider).push_type | string | The type of the push configuration. |
push_configurations.(provider).api_key | string | The registered FCM server key. |
push_configurations.(provider).push_sound | string | The name of a sound file to be played when a push notification is delivered to client apps. |
In the case of an error, an error object is returned. A detailed list of error codes is available here.