Update an APNs push configuration
Updates a specific APNs (Apple Push Notification service) push configuration for the client app. You can also register the configurations on the Sendbird Dashboard under Settings > Chat > Push notifications.
Note: If your HTTP request body contains a
.p12
certificate file or a.p8
file as an authentication token, you should send a Multipart request .
Update a .p12
certificate
Just like uploading a file, send a Multipart request to update a .p12
certificate file.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
provider_id | string | Specifies the provider ID of the push configuration. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Optional
Property name | Type | Description |
---|---|---|
apns_cert | file | In a form of the |
apns_cert_env_type | string | Specifies the certificate type of the |
apns_cert_password | string | Specifies the password of the certificate file which has been set during the |
has_unread_count_badge | boolean | Determines whether to badge the client app's icon with the number of a user's unread messages. (Default: true) |
content_available | boolean | Determines for the client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's Pushing Updates to Your App Silently. (Default: false) |
mutable_content | boolean | Determines for the client app whether to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's Modifying Content in Newly Delivered Notifications. (Default: false) |
push_sound | string | Specifies the name of a sound file to be played when a push notification is delivered to the client app. The file can be in the app's main bundle or in the |
| string | (Deprecated) Specifies the certificate type of the |
Note: If you can't upload your
.p12
file to Sendbird server using the Chat API or the Sendbird Dashboard, it might be some buggy behavior caused by the Keychain Access on your Mac.If you use a single CSR file which you previously uploaded to the Apple Developer Member Center, you might receive the same CSR file even when requesting separate files for
Development
andProduction
stages.To solve this problem, you must generate another CSR file and upload it to your Apple Developer Member Center. Then, export a
.p12
file again, and upload the new file to Sendbird server.
Response
If successful, this action returns the information about the updated APNs push configuration in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
push_configurations | string | A unique provider ID of the updated push configuration. |
Update a .p8
authentication token
Just like uploading a file, send a Multipart request to update a .p8
file.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
provider_id | string | Specifies the provider ID of the push configuration. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
apns_key_id | string | Specifies the |
apns_team_id | string | Specifies the |
apns_bundle_id | string | Specifies the |
apns_environment | string | Specifies which APNs server to use. Acceptable values are production and development. |
apns_auth_type | string | Specifies which credentials you will use when communicating with APNs. Acceptable values are certificate for a |
Optional | Type | Description |
---|---|---|
has_unread_count_badge | boolean | Determines whether to badge the client app's icon with the number of a user's unread messages. (Default: true) |
content_available | boolean | Determines whether the client app to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's Pushing Updates to Your App Silently. (Default: false) |
mutable_content | boolean | Determines for the client app whether to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's Modifying Content in Newly Delivered Notifications. (Default: false) |
push_sound | string | Specifies the name of a sound file to be played when a push notification is delivered to the client app. The file can be in the app's main bundle or in the |
Response
If successful, this action returns the information about the updated APNs push configuration in the response body.
List of response properties
Property name | Type | Description |
---|---|---|
push_configurations | string | A unique provider ID of the updated push configuration. |
In the case of an error, an error object is returned. A detailed list of error codes is available here.