The fixed-speed push feature is to solve the problem where TPNS may push messages so fast that some customer servers experience too much connection pressure. TPNS provides API settings to allow you to control the push speed according to your own server conditions.
Go to Message Push > Create Push > Advanced Settings in the console, enable fixed-speed push, and select a push speed.
After fixed-speed push is enabled, the message will be pushed to devices that match the push target at the selected speed.
- Only push to all devices and push by tag support fixed-speed push.
- The push speed can range from 1,000 to 50,000 pushes per second.
Set the optional push_speed
parameter for the RESTful API to implement fixed-speed push. For more information, please see Push API Parameter Description.
Below is a sample push:
{
"audience_type": "tag",
"tag_list": {
"tags": [
"tag1",
"tag2"
],
"op": "AND"
},
"push_speed":50000,
"message_type": "notify",
"message": {
"title": "Push title",
"content": "Push content",
"android": {
"custom_content":"{\"key\":\"value\"}"
}
}
}
Was this page helpful?