If a notification message sent by an application contains an error or incorrect redirect link, it will give end users a negative impression of the involved product/service after they view or click it. In this case, you should fix the problem in time. You can choose to terminate, recall, or override the message. This document describes how to do so through the console and RESTful APIs.
Platform | Termination | Recall | Override |
---|---|---|---|
Android | Supported | Supported only for the Tencent Push Notification Service channel | Supported only for the Tencent Push Notification Service channel, Mi channel, Meizu channel, and Huawei devices on EMUI 10 and above |
iOS | Not supported | Supported Notes: |
Supported |
Note:Message termination, recall, and override are supported only for notifications whose push target is "All devices", "Batch accounts", or "By tags".
Note:When you select message override, for vivo, OPPO, and Huawei (below EMUI 10) devices that do not support message override, you can choose whether to continue the message delivery:
- If you choose to continue the delivery, the notification message will be overridden, and both the new and original messages will appear in the device notification center at the same time.
- If you choose to abort the delivery, no new notification messages will be sent to the above devices that do not support message override.
Request method: POST
Request address:
Service URL/v3/push/stop_push_msg
API service URLs correspond to service access points one to one. Please select the service URL corresponding to the service access point of your application.
Parameter | Type | Required | Description |
---|---|---|---|
pushId | String | Yes | Push task ID |
{
"pushid":"43214535"
}
Request method: POST
Request address:
Service URL/v3/push/revoke_push_msg
API service URLs correspond to service access points one to one. Please select the service URL corresponding to the service access point of your application.
Note:Message recall will terminate the offline message delivery of the current push task by default.
Parameter | Type | Required | Description |
---|---|---|---|
pushId | String | Yes | Push task ID |
{
"pushid":"150032"
}
collapse_id
of the push taskCall the API for querying push information for one task and get the collapse_id
, for example, 0001, from the corresponding response parameter.
When you call the push API, add the collapse_id
, for example, 0001, obtained in step 1. You can also set the force_collapse
field to specify whether to deliver the message to devices that do not support message override.
Note:Message override will terminate the offline message delivery of the original push task by default.
{
"audience_type": "all",
"collapse_id": 0001,
"force_collapse":false,
"message_type": "notify",
"message": {
"title": "Override message 0001",
"content":"It's a nice day today"
},
"platform": "android"
}
Was this page helpful?