Channel Type | Applicable Condition | Supported Mobile Brand |
Tencent Push Notification Service channel | The application process is online | All brands |
Android vendor channels (Huawei, Mi, Meizu, vivo, OPPO, and FCM) | Application process online or offline | Huawei, Mi, Meizu, vivo, OPPO, OnePlus, Black Shark, realme, iQOO, Honor, and other mobile phones with Google Services Framework |
iOS vendor channel (APNs) | The application process is online or offline | Apple |
Channel | Enabled | Disabled | Supported Messages |
Android vendor channels (Huawei, Mi, Meizu, vivo, OPPO, and FCM) | Both the vendor channel and the Tencent Push Notification Service channel are available for this push. Note: If the Tencent Push Notification Service preference is enabled, this push is preferentially delivered through the Tencent Push Notification Service channel when the device is online. Otherwise, the vendor channel will be preferred. If the vendor channel push fails, the Tencent Push Notification Service channel will be used to retry the push. If Tencent Push Notification Service channel is disabled, the push can only be delivered with the vendor channel. | You can disable the Tencent Push Notification Service channel or the vendor channel. | Notification bar messages |
iOS vendor channels (APNs) | Both the APNs and Tencent Push Notification Service channels are available for the push. Note: If the Tencent Push Notification Service preference feature is enabled, this push is preferentially delivered through the Tencent Push Notification Service channel when the device is online. Otherwise, the APNs channel is preferred. If the APNs channel push fails, the Tencent Push Notification Service channel will be used to retry the push. If Tencent Push Notification Service channel is disabled, the push can only be delivered with the vendor channel. | You can disable the Tencent Push Notification Service channel or the vendor channel. | Notification bar messages and silent messages. Note: The APNs channel supports delivering up to 3 silent messages to a device per hour. |
Tencent Push Notification Service | The Tencent Push Notification Service channel is available for the push. | The Tencent Push Notification Service channel can be disabled. | Notification bar messages, in-app messages, and silent messages. Note: The Tencent Push Notification Service channel for iOS only takes effect in iOS SDK 1.2.8.0 or later. |
channel_rules
parameter for the RESTful API. For more information, please see channel_rules parameter description in the Push API documentation.
Below is a sample push on Android:{"audience_type": "token","token_list": ["05da87c0ae*************8d884aada5bb2"],"message_type": "notify","channel_rules": [{"channel": "mz","disable": true //Disable the Meizu channel},{"channel": "xm","disable": false //Enable the Mi channel}],"tpns_online_push_type":0, //The push will be delivered through the Tencent Push Notification Service channel by default when the device is online"message": {"title": "The push will be delivered through the Mi channel, and the Meizu channel is not needed","content": "Push content","android": {"custom_content":"{\\"key\\":\\"value\\"}"}}}
{"audience_type": "token","environment": "dev","token_list": ["05da87c0ae********fa9e08d884aada5bb2"],"message_type": "notify","channel_rules": [{"channel": "apns","disable": true}],"tpns_online_push_type": 0,"message": {"title": "The push will be delivered through the Tencent Push Notification Service channel only","content": "Push content","ios": {"aps": {"alert": {"subtitle": "Push subtitle"},"badge_type": -2,"sound": "Tassel.wav"},"custom_content": "{\\"key\\":\\"value\\"}"}}}
Was this page helpful?