Add an HMS push configuration

POST {{baseUrl}}/v3/applications/push/hms

Add an HMS push configuration

Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your dashboard under Settings > Application > Notifications.

https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration

Request Body

{"huawei_app_id"=>"<string>", "huawei_app_secret"=>"<string>", "push_sound"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Api-Tokenstring(Required)
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;push_configurations&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;push_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;huawei_app_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;huawei_app_secret&quot;:&quot;\u003cstring\u003e&quot;,&quot;push_sound&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;push_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;huawei_app_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;huawei_app_secret&quot;:&quot;\u003cstring\u003e&quot;,&quot;push_sound&quot;:&quot;\u003cstring\u003e&quot;}]}