Push
Pushes notifications or messages to different device endpoints and provides rich custom parameters to implement push behaviors in various scenarios.
Operation description
Before you use this operation, make sure that you fully understand the billing methods and pricing of Enterprise Mobile Application Service (EMAS) Mobile Push.
This operation distinguishes between the Android, iOS, and HarmonyOS platforms. For push calls on different platforms, you must pass the AppKey corresponding to the platform.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpush:Push |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppKey |
integer |
Yes |
The AppKey information. |
23267207 |
| PushType |
string |
Yes |
The push type. Valid values:
Valid values:
|
MESSAGE |
| DeviceType |
string |
Yes |
The device type. Valid values:
Valid values:
|
HARMONY |
| Target |
string |
Yes |
The push target. Valid values:
Note
A full push to iOS devices is delivered to devices that have been active but not uninstalled within the last 24 months. Once Apple Push Notification service (APNs) receives the push request and does not return an error message, the push is considered delivered. This may cause a surge in the number of active devices and incur high costs. Use this value with caution.
Valid values:
|
ALL |
| TargetValue |
string |
Yes |
The target value, which is set based on the Target type. Separate multiple values with commas. If the number of values exceeds the limit, you must send multiple push requests.
|
ALL |
| StoreOffline |
boolean |
No |
Specifies whether to save offline messages and notifications. Default value: false. If this parameter is set to true and the user is offline during the push, the message or notification is sent again when the user comes online within the expiration time specified by ExpireTime. The default value of ExpireTime is 72 hours. iOS notifications are delivered through the APNs channel and are not affected by StoreOffline. |
false |
| SendChannels |
string |
No |
The specified delivery channels. Valid values:
Note
|
accs,huawei,xiaomi |
| PushTime |
string |
No |
The scheduled delivery time. If this parameter is not set, the push is delivered immediately. The scheduled delivery time cannot be later than 7 days from the current time. Specify the time in the ISO 8601 standard. The time must be in UTC and in the YYYY-MM-DDThh:mm:ssZ format. Note
If Target is set to TBD (continuous push), scheduled delivery is not supported. |
2019-02-20T00:00:00Z |
| ExpireTime |
string |
No |
The expiration time of offline messages and notifications. This parameter is used together with StoreOffline. Expired messages and notifications are not delivered. The maximum retention period is 72 hours. Default value: 72 hours. Specify the time in the ISO 8601 standard. The time must be in UTC and in the YYYY-MM-DDThh:mm:ssZ format. The expiration time cannot be earlier than the current time or the scheduled delivery time plus 3 seconds ( |
2019-02-20T00:00:00Z |
| JobKey |
string |
No |
The custom identifier of the push task. If JobKey is not empty, this field is included in the receipt log. For more information, see Receipt logs. Note
Format requirements: The value can contain only letters, digits, underscores (_), and hyphens (-). The value cannot exceed 32 characters in length. |
123 |
| Title |
string |
No |
The title of the notification or message during the push. Maximum length: 200 bytes. This parameter is required for Android and HarmonyOS pushes. This parameter is optional for iOS notifications. If this parameter is specified:
|
title |
| Body |
string |
No |
The content of the notification or message for Android and HarmonyOS pushes, or the content of the iOS message or notification. The content size is limited. For more information, see Product limits. |
hello |
| Trim |
boolean |
No |
Specifies whether to automatically truncate excessively long titles and content. Note
This parameter applies only to vendor channels that explicitly limit the length of titles and content. It does not apply to channels such as APNs, Huawei, and Honor, which do not limit the length of titles and content but only limit the total request body size. |
false |
| iOSApnsEnv |
string |
No |
To send iOS notifications through the APNs center, you must specify the corresponding environment context. Valid values:
Valid values:
|
DEV |
| iOSRemind |
boolean |
No |
Specifies whether to convert an offline message into a notification. If the device is offline during a message push (that is, the persistent connection channel to the Mobile Push server is disconnected), the push is delivered once as a notification through the Apple APNs channel. Note
Converting offline messages into notifications applies only to the production environment. |
true |
| iOSSubtitle |
string |
No |
The subtitle of the iOS notification (iOS 10 and later). |
su'b |
| iOSRemindBody |
string |
No |
The iOS notification content used when an iOS message is converted into a notification. This parameter is valid only when iOSApnsEnv is set to PRODUCT and iOSRemind is set to true. |
iOS notification body |
| iOSMusic |
string |
No |
The sound of the iOS notification. Specify the name of the audio file stored in the app bundle or the sandbox Library/Sounds directory. For more information, see How to set the notification sound for iOS pushes. If this parameter is set to an empty string (""), the notification is silent. If this parameter is not set, the default value is default, which indicates the system prompt sound. |
"" |
| iOSBadge |
integer |
No |
The badge number displayed in the upper-right corner of the iOS application icon. Note
If iOSBadgeAutoIncrement is set to true, this parameter must be left empty. |
0 |
| iOSBadgeAutoIncrement |
boolean |
No |
Specifies whether to enable the automatic badge increment feature. Default value: false. Note
When this parameter is set to true, iOSBadge must be left empty. The automatic badge increment feature maintains the badge count for each device on the push server. This feature requires SDK version 1.9.5 or later, and users must actively synchronize the badge number to the server. |
true |
| iOSSilentNotification |
boolean |
No |
Specifies whether to enable iOS silent notifications. |
true |
| iOSMutableContent |
boolean |
No |
The iOS notification processing extension flag (iOS 10 and later). If this parameter is set to true, the notification pushed by APNs can reach the extension for processing before it is displayed. This parameter must be set to true for silent notifications. |
true |
| iOSNotificationCategory |
string |
No |
The category of the iOS notification (iOS 10 and later). |
ios |
| iOSNotificationCollapseId |
string |
No |
The collapse ID of the iOS notification. If a device receives messages with the same CollapseId, the messages are merged into one. If the device is offline and continuously receives messages with the same CollapseId, only one notification is displayed in the notification bar. This parameter is supported in iOS 10 and later. |
ZD2011 |
| iOSNotificationThreadId |
string |
No |
The thread ID used to group iOS remote notifications and mark the identifier of the collapsed group. This parameter is supported only in iOS 12.0 and later. |
abc |
| iOSInterruptionLevel |
string |
No |
The interruption level. Valid values:
|
active |
| iOSRelevanceScore |
number |
No |
The relevance score for summary highlighting. Valid values: a floating-point number in the range of [0,1]. |
0.01 |
| iOSExtParameters |
string |
No |
The extension property of the iOS notification. For iOS 10 and later, you can specify the resource URL for rich media push notifications in this parameter: |
{"attachment": "https://www.example.com/notification_pic.png"} |
| iOSLiveActivityEvent |
string |
No |
The event to start, update, or end a Live Activity. Valid values: start, update, and end. Valid values:
|
start |
| iOSLiveActivityId |
string |
No |
The Live Activity ID reported by the device to the user server. This is the unique identifier of the Live Activity. |
66B94673-B32E-4CA7-863C-3E523054FD46 |
| iOSLiveActivityAttributesType |
string |
No |
The type of the Live Activity to be started. Note
This parameter is required when iOSLiveActivityEvent is set to start. |
OrderActivityAttributes |
| iOSLiveActivityAttributes |
string |
No |
The JSON string that contains the static pass-through parameters for Dynamic Island pushes. Static parameter includes static user-defined information, such as product numbers and order information. Note
Static parameter is required when iOSLiveActivityEvent is set to start. |
{"orderId": "12345", "product": "Shoes"} |
| iOSLiveActivityContentState |
string |
No |
The pass-through dynamic parameter for Dynamic Island pushes. This parameter includes real-time update information, such as price and inventory changes. |
{"status": "delivered", "estimatedArrival": "2023-12-31T12:00:00Z"} |
| iOSLiveActivityDismissalDate |
integer |
No |
The UNIX timestamp in seconds. The ended Live Activity is retained on the Lock Screen until the specified time. The maximum retention period is 4 hours. |
1743131967 |
| iOSLiveActivityStaleDate |
integer |
No |
The UNIX timestamp in seconds that marks the expiration time of the activity content. |
1743131967 |
| AndroidNotifyType |
string |
No |
The reminder method for the notification. Valid values:
Valid values:
|
BOTH |
| AndroidRemind |
boolean |
No |
Specifies whether to use the auxiliary pop-up window feature when the device is offline and the push type is message. Default value: false. This parameter takes effect only when PushType is set to MESSAGE. If the message is successfully converted into a notification and pushed, the data displayed in the received notification is the value of the AndroidPopupTitle and AndroidPopupBody parameters set on the server. When the notification is clicked, the data obtained in the onSysNoticeOpened method of the auxiliary pop-up window is the value of the Title and Body parameters set on the server. |
true |
| AndroidOpenType |
string |
No |
The action performed after the notification is clicked. Valid values:
Valid values:
|
APPLICATION |
| AndroidActivity |
string |
No |
The activity to be opened by the notification. This parameter is passed only when AndroidOpenType is set to ACTIVITY. Example: |
com.alibaba.cloudpushdemo.bizactivity |
| AndroidOpenUrl |
string |
No |
The URL to be opened after the Android device receives the push. This parameter is passed only when AndroidOpenType is set to URL. |
https://www.example.com |
| AndroidPopupActivity |
string |
No |
The activity to which the user is redirected after the notification is clicked. |
com.alibaba.cloudpushdemo.bizactivity |
| AndroidPopupTitle |
string |
No |
The title content in auxiliary pop-up window mode. This parameter is required when the AndroidPopupActivity parameter is not empty. Maximum length: 50 characters. Both Chinese and English characters count as one character. If a vendor channel is used, the content must also meet the limits of the vendor channel. For more information, see Limits on auxiliary channel pushes for Android. |
hello |
| AndroidPopupBody |
string |
No |
The body content in auxiliary pop-up window mode. This parameter is required when the AndroidPopupActivity parameter is not empty. Maximum length: 200 characters. Both Chinese and English characters count as one character. If a vendor channel is used, the content must also meet the limits of the vendor channel. For more information, see Limits on auxiliary channel pushes for Android. |
hello |
| AndroidRenderStyle |
integer |
No |
The notification style. Valid values:
Note
This parameter must be provided if a non-standard mode is used. Valid values:
|
1 |
| AndroidBigTitle |
string |
No |
The title in long text mode. Maximum length: 200 bytes. One Chinese character counts as 3 bytes.
|
Sample long title |
| AndroidBigBody |
string |
No |
The body in long text mode. Maximum length: 1,000 bytes. One Chinese character counts as 3 bytes. The actual limit is subject to the specific vendor channel during delivery. This parameter is currently supported by:
Note
If this parameter is not provided in long text mode, the first non-empty value from Body and AndroidPopupBody is used. |
Sample long text |
| AndroidBigPictureUrl |
string |
No |
The image URL in big picture mode. This parameter is currently supported by the proprietary channel with Android SDK 3.6.0 and later. |
https://imag.example.com/image.png |
AndroidXiaomiBigPictureUrl
deprecated
|
string |
No |
[Deprecated] This parameter is deprecated. Starting from August 2023, Xiaomi officially no longer supports dynamically setting small icons, right-side icons, and big pictures during pushes on new devices and systems. |
https://f6.market.xiaomi.com/download/MiPass/aaa/bbb.png |
| AndroidImageUrl |
string |
No |
The URL of the right-side icon. This parameter is currently supported by:
|
https://imag.example.com/image.png |
AndroidXiaomiImageUrl
deprecated
|
string |
No |
[Deprecated] This parameter is deprecated. Starting from August 2023, Xiaomi officially no longer supports dynamically setting small icons, right-side icons, and big pictures during pushes on new devices and systems. |
https://imag.example.com/image.png |
| AndroidInboxBody |
string |
No |
The body in inbox mode. The content must be a valid JSON array with no more than 5 elements. This parameter is currently supported by:
|
["First line","Second line"] |
| AndroidNotificationBarType |
integer |
No |
The custom notification bar style for Android. Valid values: 1 to 100. |
2 |
| AndroidNotificationBarPriority |
integer |
No |
The priority of the Android notification display position in the notification bar. Valid values: -2, -1, 0, 1, and 2. |
0 |
| AndroidNotificationNotifyId |
integer |
No |
The unique identifier of each message when displayed in the notification bar. Different notification bar messages can use the same NotifyId to allow new notification bar messages to overwrite old ones. |
100001 |
| AndroidNotificationChannel |
string |
No |
The channel ID of the Android application. This value must match the channel ID in the application.
|
1 |
| AndroidNotificationHuaweiChannel |
string |
No |
The importance parameter for Huawei notification message classification, which determines the notification behavior on user devices. Valid values:
Note
Valid values:
|
LOW |
| AndroidNotificationHonorChannel |
string |
No |
The importance parameter for Honor notification message classification, which determines the notification behavior on user devices. Valid values:
You must apply for this permission on the Honor platform. For more information, see Application link. Valid values:
|
LOW |
| AndroidNotificationXiaomiChannel |
string |
No |
The channel ID for Xiaomi notification types. You must apply for this permission on the Xiaomi platform. For more information, see Application link. Note
|
michannel |
| AndroidNotificationVivoChannel |
string |
No |
The classification for vivo notification messages. Valid values:
Note
Valid values:
|
classification |
| AndroidNotificationGroup |
string |
No |
The message group. For messages in the same group, only the latest message and the total number of messages received in the group are displayed in the notification bar. All messages are not displayed and cannot be expanded. This parameter is currently supported by:
Note
The proprietary channel no longer supports this parameter in Android SDK 3.9.2 and later. |
group-1 |
| AndroidNotificationThreadId |
string |
No |
The message thread ID. Messages in the same group are collapsed and can be expanded in the notification bar. Notifications in different groups are displayed separately. This parameter is currently supported by:
|
thread-1 |
| AndroidExtParameters |
string |
No |
The extended properties of the notification. This parameter does not take effect when the push type PushType is set to MESSAGE. This parameter must be passed in the JSON map format. Otherwise, a parsing error occurs. |
{"key1":"value1","api_name":"PushNoticeToAndroidRequest"} |
| AndroidMessageHuaweiUrgency |
string |
No |
The delivery priority for Huawei channel notifications. Valid values:
You must apply for this permission. For more information, see Application link. Valid values:
|
HIGH |
| AndroidMessageHuaweiCategory |
string |
No |
Purpose 1: After you complete the self-classification permission application, this parameter is used to identify the message type, determine the message reminder method, and accelerate the delivery of specific types of messages. For valid values, refer to the message classification standards in the official Huawei push documentation, and fill in the "Cloud notification category value" or "Local notification category value" in the document table. Purpose 2: After you apply for special permissions, this parameter is used to identify high-priority pass-through scenarios. Valid values:
Note
If the "Cloud notification category value" is "Not applicable", the message is delivered through the Alibaba Cloud proprietary channel. If the "Local notification category value" is "Not applicable", the message is delivered through the Huawei channel. |
VOIP |
| AndroidMessageOppoCategory |
string |
No |
OPPO message categorization includes two categories for management: Communication and Services, and Content and Marketing. Communication and Services (requires permission application):
Content and Marketing:
For more information, see OPUSH message categorization rules. |
MARKETING |
| AndroidMessageOppoNotifyLevel |
integer |
No |
The notification level for OPPO channel notification bar messages. Valid values:
Note
When you use the AndroidMessageOppoNotifyLevel parameter, you must also pass the AndroidMessageOppoCategory parameter. |
1 |
| AndroidMessageVivoCategory |
string |
No |
vivo message categorization includes two categories for management: System Messages and Operational Messages. System Messages:
Operational Messages:
For more information, see Categorization description. |
TODO |
| AndroidTargetUserType |
integer |
No |
Settings of the notification type for vendor channels. Valid values:
Note
Valid values:
|
0 |
| AndroidHuaweiTargetUserType |
integer |
No |
The notification type for the Huawei channel. Valid values:
Note
Each application can send 500 test notifications per day, which is not subject to the daily push limit per device. Valid values:
|
0 |
| AndroidHonorTargetUserType |
integer |
No |
The notification type for the Honor channel. Valid values:
Note
Each application can send 1,000 test notifications per day, which is not subject to the daily push limit per device. Valid values:
|
0 |
| AndroidVivoPushMode |
integer |
No |
The notification type for the vivo channel. Valid values:
Note
For test pushes, configure the test devices in the vivo console in advance. You can obtain the RegId of the test device by searching for "onReceiveRegId regId" in the device startup log. Valid values:
|
0 |
| AndroidOppoIntentEnv |
integer |
No |
The push environment for OPPO Fluid Cloud. Valid values:
Note
For the OPPO Fluid Cloud test environment, refer to Environment setup to set up the client. Valid values:
|
1 |
| AndroidHuaweiBusinessType |
integer |
No |
The Huawei quick notification parameter. Valid values:
Valid values:
|
1 |
| AndroidHuaweiReceiptId |
string |
No |
The receipt ID for the Huawei channel. You can view this receipt ID in the receipt parameter settings of the Huawei push operations platform. Note
If the default receipt configuration on the Huawei push operations platform is set to the Alibaba Cloud receipt, you do not need to provide this parameter. Otherwise, configure the default receipt ID for the Huawei channel in the Alibaba Cloud EMAS Mobile Push console first. |
RCP4C123456 |
| AndroidVivoReceiptId |
string |
No |
The receipt ID for the vivo channel. You can view this receipt ID in the application information of the push service on the vivo Open Platform. Note
If the default receipt configuration on the vivo Open Platform is set to the Alibaba Cloud receipt, you do not need to provide this parameter. Otherwise, configure the default receipt ID for the vivo channel in the Alibaba Cloud EMAS Mobile Push console first. |
123 |
| AndroidBadgeClass |
string |
No |
The fully qualified class name of the application entry Activity for badge settings. Note
This parameter is valid only for pushes through the Huawei or Honor vendor channel. |
com.alibaba.cloudpushdemo.bizactivity |
| AndroidBadgeAddNum |
integer |
No |
The increment value for the badge number. This value is added to the existing badge number. Valid values: 1 to 99. Note
This parameter is valid only for pushes through the Huawei or Honor vendor channel. If both AndroidBadgeAddNum and AndroidBadgeSetNum are specified, AndroidBadgeSetNum takes precedence. |
1 |
| AndroidBadgeSetNum |
integer |
No |
The fixed value for the badge number. Valid values: 0 to 99. Note
This parameter takes effect only for the Huawei and Honor channels when pushing through vendor channels. When pushing through the Alibaba Cloud proprietary channel, this parameter takes effect only on Huawei, Honor, and vivo devices. |
5 |
| AndroidMusic |
string |
No |
The notification sound for the Huawei vendor channel. Specify the name of the audio file stored in the If this parameter is not specified, the default ringtone is used. |
alicloud_notification_sound |
| HarmonyRemind |
boolean |
No |
Specifies whether to use the auxiliary pop-up window feature when a push message is sent but the device is offline. This parameter takes effect only when PushType is set to MESSAGE. Default value: false. If the message is successfully converted to a notification and pushed, the received notification displays the data specified by the HarmonyRemindTitle and HarmonyRemindBody parameters on the server. |
false |
| HarmonyRemindTitle |
string |
No |
The HarmonyOS notification title used when a HarmonyOS message is converted to a notification. This parameter is valid only when HarmonyRemind is set to true. |
New message |
| HarmonyRemindBody |
string |
No |
The HarmonyOS notification content used when a HarmonyOS message is converted to a notification. This parameter is valid only when HarmonyRemind is set to true. |
You have a new message. Please check it |
| HarmonyCategory |
string |
No |
The category of the notification message. After you apply for the notification message auto-categorization permission, this parameter is used for the identity of the message type. Different notification message types affect the display and reminder methods of the message. Valid values:
For details, see Notification.category on the HarmonyOS official website. Valid values:
|
IM |
| HarmonyNotificationSlotType |
string |
No |
The type of the notification channel to use. This parameter is valid only when the Alibaba Cloud proprietary channel is online. Valid values:
For more information, see SlotType on the HarmonyOS official website. Valid values:
|
SOCIAL_COMMUNICATION |
| HarmonyNotifyId |
integer |
No |
The unique identifier of each message when the notification is displayed. If this parameter is not specified, the push service automatically generates a unique identifier for each message. Different notification messages can have the same notifyId to allow new messages to overwrite old ones. For more information, see Notification.notifyId on the HarmonyOS official website. |
0 |
| HarmonyActionType |
string |
No |
The action to perform after the notification is clicked. Valid values:
Valid values:
|
APP_HOME_PAGE |
| HarmonyAction |
string |
No |
The action corresponding to the ability of the built-in page in the application. Important When HarmonyActionType is set to APP_CUSTOM_PAGE, you must specify at least one of the HarmonyUri and HarmonyAction fields. For more information, see ClickAction.action on the HarmonyOS official website. |
com.example.action |
| HarmonyUri |
string |
No |
The URI corresponding to the ability of the built-in page in the application. Important When HarmonyActionType is set to APP_CUSTOM_PAGE, you must specify at least one of the HarmonyUri and HarmonyAction fields. If multiple abilities exist, specify the action and URI for each ability. The action is prioritized when searching for the corresponding built-in page in the application. For more information, see ClickAction.uri on the HarmonyOS official website. |
https://www.example.com:8080/push/example |
| HarmonyRenderStyle |
string |
No |
The style of the notification message. Valid values:
Valid values:
|
NORMAL |
| HarmonyImageUrl |
string |
No |
The URL of the large icon on the right side of the notification. The URL must use the HTTPS protocol. Note
Supported image formats include PNG, JPG, JPEG, HEIF, GIF, and BMP. The product of the image width and height must be less than 25,000 pixels. For more information, see Notification.image on the HarmonyOS official website. |
https://example.com/xxx.png |
| HarmonyInboxContent |
string |
No |
The content for the multi-line text style. This field is required when HarmonyRenderStyle is set to MULTI_LINE. A maximum of three content items are supported. |
["1.content1","2.content2","3.content3"] |
| HarmonyExtParameters |
string |
No |
The extended properties of the notification. This parameter does not take effect when the push type PushType is set to MESSAGE. This parameter must be passed in the JSON map format. Otherwise, a parsing error occurs. |
{"key1":"value1","api_name":"PushNoticeToAndroidRequest"} |
| HarmonyTestMessage |
boolean |
No |
Specifies whether the message is a test message. Valid values:
For more information, see pushOptions.testMessage on the HarmonyOS official website. |
true |
| HarmonyReceiptId |
string |
No |
The receipt ID for the HarmonyOS channel. You can view this receipt ID in the receipt parameter settings of the HarmonyOS push operations platform. Note
If the default receipt configuration on the HarmonyOS push operations platform is set to the Alibaba Cloud receipt, you do not need to provide this parameter. Otherwise, configure the default receipt ID for the HarmonyOS channel in the Alibaba Cloud EMAS Mobile Push console first. For details, see pushOptions.receiptId on the HarmonyOS official website. |
RCPB***DFD5 |
| HarmonyExtensionPush |
boolean |
No |
Specifies whether the message is a HarmonyOS extended notification message when PushType is set to NOTICE. Valid values:
You must apply for permissions on the HarmonyOS side before sending extended notification messages. For more information, see Sending extended notification messages in the HarmonyOS documentation. |
true |
| HarmonyExtensionExtraData |
string |
No |
The extra data for the extended notification message. |
Sample extra data |
| HarmonyBadgeAddNum |
integer |
No |
The increment value for the badge number of the HarmonyOS application. For more information, see Description of the addNum field for HarmonyOS badges. |
1 |
| HarmonyBadgeSetNum |
integer |
No |
The fixed value for the badge number of the HarmonyOS application. For more information, see Description of the setNum field for HarmonyOS badges. This parameter is supported in HarmonyOS SDK 1.2.0 and later. |
1 |
| SmsTemplateName |
string |
No |
The name of the SMS template used for sending fallback SMS messages. You can obtain this name from the SMS template management page. This is the name assigned by the system, not the name set by the developer. |
SMS template name |
| SmsSignName |
string |
No |
The signature used for sending fallback SMS messages. |
SMS signature |
| SmsParams |
string |
No |
The key-value pairs of variables in the SMS template. Format: |
key1=value1 |
| SmsDelaySecs |
integer |
No |
The delay time before triggering the SMS message. Unit: seconds. This parameter is required if you use the SMS linkage feature. Set this parameter to 15 seconds or more, up to a maximum of 3 days, to prevent duplicate SMS and push messages. Note
When the SMS linkage feature is used, the ExpireTime parameter becomes invalid. The expiration time of the notification is calculated based on the SmsDelaySecs parameter. The expiration time is the current time plus the value of SmsDelaySecs. |
15 |
| SmsSendPolicy |
integer |
No |
The condition for triggering the SMS message. Valid values:
Valid values:
|
0 |
SendSpeed
deprecated
|
integer |
No |
[Deprecated] This parameter is deprecated. |
0 |
AndroidXiaoMiNotifyTitle
deprecated
|
string |
No |
[Deprecated] This parameter is deprecated. All third-party auxiliary pop-up windows are uniformly supported by the new AndroidPopupTitle parameter. |
None |
AndroidXiaoMiNotifyBody
deprecated
|
string |
No |
[Deprecated] This parameter is deprecated. All third-party auxiliary pop-up windows are uniformly supported by the new AndroidPopupBody parameter. |
None |
AndroidXiaoMiActivity
deprecated
|
string |
No |
[Deprecated] This parameter is deprecated. All third-party auxiliary pop-up windows are uniformly supported by the new AndroidPopupActivity parameter. |
None |
| IdempotentToken |
string |
No |
An idempotent parameter used to prevent duplicate pushes on the server caused by retries from the API client. If the same IdempotentToken is used for calls within 15 minutes, only one push is performed, and subsequent calls return the result of the first successful push. Note
|
c8016d13-6e76-410c-9bda-769383d11787 |
| AndroidMeizuNoticeMsgType |
integer |
No |
The Meizu message type. Valid values:
Valid values:
|
0 |
| AndroidOppoPrivateMsgTemplateId |
string |
No |
The OPPO private message template ID. |
687557242b1634hzefs3d5013 |
| AndroidOppoPrivateTitleParameters |
object |
No |
The title parameters for the OPPO private message template. |
|
|
string |
No |
The variable names and values in the title of the OPPO private message template. |
my_title |
|
| AndroidOppoPrivateContentParameters |
object |
No |
The content parameters for the OPPO private message template. |
|
|
string |
No |
The variable names and values in the content of the OPPO private message template. |
my_content |
|
| AndroidXiaomiTemplateId |
string |
No |
The Xiaomi private message template ID. |
P10645 |
| AndroidXiaomiTemplateParams |
string |
No |
The parameters for the Xiaomi private message template. The value is a JSON string. |
{"keywords1":"Tom","keywords2":"phone"} |
| AndroidVivoTemplateId |
string |
No |
The vivo template ID. |
t1-ge3-lq |
| AndroidVivoTemplateParams |
string |
No |
The parameters for the vivo template. The value is a JSON object string. |
{"keywords1":"S123"} |
| HarmonyLiveViewPayload |
string |
No |
The JSON string of the HarmonyOS Live View data structure LiveViewPayload. For development and integration, refer to the HarmonyOS Live View push guide. |
{ "activityId": 1, "operation": 0, "event": "TAXI", "status": "DRIVER_ON_THE_WAY", "activityData": { "notificationData": { "type": 3 } } } |
| AndroidHuaweiLiveNotificationPayload |
string |
No |
The JSON string of the Huawei Android Live Notification data structure LiveNotificationPayload. For development and integration, refer to the Huawei Live Notification push guide. |
{ "activityId": 1, "operation": 1, "event": "TAXI", "activityData": { "notificationData": { "type": 3 } } } |
| AndroidOppoIntelligentIntent |
string |
No |
The JSON string of the OPPO Fluid Cloud intent sharing data structure IntelligentIntent. For development and integration, refer to the OPPO Fluid Cloud push guide. |
{ "intentName": "Example.Progress", "identifier": "d71ebd3119877b12ecdb6c4fe96b068e", "timestamp": 1729485000989, "serviceId": { "launcher": "999800001", "fluidCloud": "999900001" }, "intentAction": { "actionStatus": 0 }, "intentEntity": { "entityName": "TAXI" } } |
| AndroidOppoDeleteIntentData |
string |
No |
The JSON string of the OPPO Fluid Cloud intent deletion data structure data. This parameter is invalid if the AndroidOppoIntelligentIntent parameter is already specified. For development and integration, refer to the OPPO Fluid Cloud push guide. |
{ "intentName": "Example.Progress", "entityIds": [ "A580202509130712" ], "serviceId": { "launcher": "999800001", "fluidCloud": "999900001" } } |
| AndroidVivoLiveMessage |
string |
No |
The JSON string of the vivo Atomic Island data structure liveMessage. For development and integration, refer to the vivo Atomic Island push guide. |
{ "operation": 0, "scene": "HEALTH_REGISTER", "templateType": 1, "showNotify": true, "changeRecord": 999, "capsuleData": { "bgColor": "#32d4d4" } } |
| AndroidXiaomiFocusParam |
string |
No |
The JSON string of the Xiaomi Super Island data structure miui.focus.param. For development and integration, refer to the Xiaomi Super Island push guide. |
{ "param_v2": { "business": "taxi", "updatable": true, "orderId": "A580202509130712", "param_island": { "islandProperty": 1, "bigIslandArea": { "imageTextInfoLeft": { "type": 1 } } } } } |
| AndroidXiaomiFocusPics |
string |
No |
The JSON string of the Xiaomi Super Island image data miui.focus.pic_xxx. For development and integration, refer to the Xiaomi Super Island push guide. |
{ "miui.focus.pic_ticker": "https://example.com/ticker.jpg", "miui.focus.pic_aod": "https://example.com/aod.jpg", "miui.focus.pic_imageText": "https://example.com/imageText.jpg" } |
Additional request parameter descriptions
Details of Title and Body:
| Attribute\Push type | Message (iOS) | Message (Android) | Notification (iOS) | Notification (Android) |
| Title | The message title, which corresponds to the title field of CCPSysMessage in the message callback. | The CPushMessage.title field. | The notification title. | The notification title, which corresponds to the onNotificationOpened callback method. |
| Body | The message body, which corresponds to the body field of CCPSysMessage in the message callback. | The message body, which corresponds to the CPushMessage.content field. | The notification content. | The notification content, which corresponds to the onNotificationOpened callback method. |
The following configurations apply only to the Android auxiliary pop-up window feature:
If the device is offline during the push (that is, the persistent connection channel to the mobile push server is disconnected), this push can trigger the auxiliary pop-up window feature. To enable the auxiliary pop-up window feature, refer to Configure auxiliary channels for mobile push. The following conditions must be met:
A third-party auxiliary channel is integrated.
The StoreOffline parameter is set to true.
A notification is pushed (the AndroidRemind parameter does not need to be set), or a message is pushed and the AndroidRemind parameter is set to true.
The AndroidPopupActivity, AndroidPopupTitle, and AndroidPopupBody parameters are correctly set.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| MessageId |
string |
The message ID that identifies a push task. |
501029 |
| RequestId |
string |
The request ID. |
9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC |
Examples
Success response
JSON format
{
"MessageId": "501029",
"RequestId": "9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidPeriod.ExceedDays | The period between specified EndTime and StartTime exceeds %s days. | The interval between the start time and end time cannot exceed %s days. |
| 400 | Invalid%s.Format | The specified %s format is invalid. | The parameter format is invalid. |
| 400 | AccountDisabled | Your account is not enabled. | The feature is not enabled. |
| 400 | FileNotExist | The specified file does not exist. | The specified file does not exist. |
| 400 | IncorrectPassword | The password is incorrect. | The password is incorrect. |
| 400 | NotApnsCertificate | The Certificate is not an APNs certificate. | The certificate is not an APNs certificate. |
| 400 | PermissionDenied | The specified AppKey is not authorized. | |
| 400 | SendSpeedNotSupported | SendSpeed is not supported for specified Target. | The specified target does not support the SendSpeed parameter. |
| 400 | SmsProfileConfigFailed | Failed to configure SMS profile. | The SMS configuration failed. |
| 400 | SmsProfileGetFailed | Failed to get SMS profile. | Failed to retrieve the SMS configuration. |
| 400 | SmsRoleAuthorizeFailed | Failed to authorize SMS role. | The SMS role authorization failed. |
| 400 | SmsRoleUnauthorized | The SMS role is unauthorized. | The SMS role is not authorized. |
| 400 | TagsNumberBeyondLimit | The number of tags bound to this app exceeds the limit. | The number of tags bound to the current app exceeds the limit. |
| 400 | Invalid%s.LengthExceed | The specified %s length cannot be greater than %s. | The parameter length exceeds the limit. |
| 400 | Invalid%s.BytesExceed | The specified %s exceeds the %s bytes limit. | The number of bytes in the parameter exceeds the limit. |
| 400 | Invalid%s.Empty | The specified %s cannot be empty. | The parameter cannot be empty. |
| 400 | Invalid.Parameter | The specified parameter is invalid: %s. | The parameter %s is invalid. |
| 400 | TargetNotSupported | Target is not supported for batch push. | The specified target is not supported for file-based push. |
| 500 | InternalError | The request processing has failed due to some unknown error. Please try again. If the error still exists, submit a ticket. | The request processing has failed due to some unknown error. |
| 500 | Timeout | The request processing is timeout. | Request processing timed out. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.