A push plan helps operational personnel and developers manage multiple push tasks for different push targets in the form of combinations and allows them to view the overall effect of pushes by plan and evaluate the achievement of overall goals.
Multiple push tasks may need to be created for phased events such as 6/18 and 11/11 shopping festivals or for the same operational goal such as improving the retention rate of new users. In such cases, you can create a push plan to manage them and view the number of messages reached and user clicks at the plan level, so as to understand the conversion effect and achievement of marketing goals.
For common push types such as like, comment, share, and private message, you can group all single-user push tasks of the same type into the same plan and view data such as the number of push messages and user clicks in the type by day, so as to evaluate the promotional effect of the message type on user activity.
Method 1:
Method 2:
On the push plan details page, click the Task List tab, and click Create Push.
On the push plan details page, click the Plan Overview tab, and you can view the aggregated statistics of the push plan.
Create a push plan as instructed here. Then, you can specify it for message push.
{
"planName":"VIP_Level 15",
"planDescribe":"VIP member benefits"
}
When calling the push API, you can set the plan_id
to specify the ID of the push plan for the target recipients. For more information, please see Optional Parameter Description in the RESTful API document.
Below is a sample push:
{
"audience_type": "token",
"environment":"dev",
"token_list": [ "05da87c0ae********fa9e08d884aada5bb2"],
"message_type":"notify",
"plan_id":"20200704",
"message":{
"Title":"Push title",
"content": "Push content",
"ios":{
"aps": {
"alert": {
"subtitle": "Push subtitle"
},
"badge_type": -2,
"sound":"Tassel.wav",
"category": "INVITE_CATEGORY"
},
"custom_content":"{\"key\":\"value\"}",
}
}
}
Was this page helpful?