Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
Push Kit allows you to use HTTPS to access its server and send uplink messages and downlink messages. This section describes the downlink messaging.
The following figure shows the downlink messaging.

URL for calling the API using HTTPS POST:
POST https://push-api.cloud.huawei.com/v1/[clientid]/messages:send
Replace the value of [clientid] with the client ID of your app, which can be obtained from the Project settings page.
Request header example:
Content-Type: application/json; charset=UTF-8 Authorization: Bearer CF3Xl2XV6****************************************Nm3WccUIaDg==
{
"validate_only": false,
"message": {
"android": {
"notification": {
"title": "test title",
"body": "test body",
"click_action": {
"type": 3
}
}
},
"token": ["pushtoken1"]
}
} {
"validate_only": false,
"message": {
"data": "{'param1':'value1','param2':'value2'}",
"token": ["pushtoken1"]
}
} For details request parameters, please refer to Sending Downlink Messages.
Huawei provides Java Sample Code for you to encapsulate server APIs.
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.