Add an APNs push configuration
POST {{baseUrl}}/v3/applications/push/apns
Add an APNs push configuration
Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your dashboard under Settings > Application > Notifications.
Note: To upload a .p12 certificate file to Sendbird server, you should send a Multipart request.
https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration
Request Body
{"apns_cert"=>"<binary>", "apns_cert_env_type"=>"<string>", "apns_cert_password"=>"<string>", "has_unread_count_badge"=>"<boolean>", "content_available"=>"<boolean>", "mutable_content"=>"<boolean>", "push_sound"=>"<string>", "apns_type"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Api-Token | string | (Required) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"push_configurations":[{"id":"\u003cstring\u003e","push_type":"\u003cstring\u003e","created_at":"\u003cnumber\u003e","apns_cer_env_type":"\u003cstring\u003e","apns_expiration":"\u003cnumber\u003e","apns_name":"\u003cstring\u003e","has_unread_count_badge":"\u003cnumber\u003e","content_available":"\u003cboolean\u003e","mutable_content":"\u003cboolean\u003e","push_sound":"\u003cstring\u003e"},{"id":"\u003cstring\u003e","push_type":"\u003cstring\u003e","created_at":"\u003cnumber\u003e","apns_cer_env_type":"\u003cstring\u003e","apns_expiration":"\u003cnumber\u003e","apns_name":"\u003cstring\u003e","has_unread_count_badge":"\u003cnumber\u003e","content_available":"\u003cboolean\u003e","mutable_content":"\u003cboolean\u003e","push_sound":"\u003cstring\u003e"}]}