Configure Huawei

Control Panel configuration

  1. Select your app from the Huawei AppGallery Connect projects list.

  2. Go to Project Setting -> App information.

  3. Copy App ID and App secret values.

4. Go to your Pushwoosh project configuration and press Configure for the Huawei platform.

5. Paste the App ID and App secret into corresponding fields, then press Apply.

API configuration

post
/configureApplication for Huawei

https://cp.pushwoosh.com/json/1.3/configureApplication
Configures Huawei platform for the app.
Request
Response
Request
Body Parameters
auth
required
string
API Access token from Pushwoosh Control Panel.
application
required
string
Pushwoosh app code.
device_type
required
integer
Must be 17 for Huawei.
huawei_android_app_secret
required
string
App Secret from the App Information section of AppGallery Connect.
huawei_android_app_id
required
string
App ID from the App Information section of AppGallery Connect.
huawei_android_framework
required
string
Possible values: native.
Response
200: OK
{
"status_code": 200,
"status_message": "OK",
"response": {
"providers": {
"ios": false,
"android": false,
"baidu_android": false,
"wp7": false,
"macos": false,
"blackberry": false,
"wns": false,
"adm": false,
"safari": false,
"chrome": false,
"firefox": false,
"ie": false,
"email": false,
"huawei_android": true
}
}
}
Example
"request": {
"auth": "24NqYqW.....plXulcvennDpV",
"application": "12345-ABCDE",
"device_type": 17,
"huawei_android_app_secret": "cfa8b015c560c......fbec572ef",
"huawei_android_app_id": "102138089",
"huawei_android_framework": "native"
}