PushNoticeToiOS
Send a notification to iOS devices. The notification uses Apple’s APNs channel and appears directly in the device notification center.
Operation description
This operation is deprecated. Use the Advanced Push API instead. Set the DeviceType parameter to iOS and the PushType parameter to NOTICE.
Before you use this operation, review the pricing and billing model for EMAS Mobile Push.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpush:PushNoticeToiOS |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppKey |
integer |
Yes |
Your AppKey. |
24780725 |
| Target |
string |
Yes |
The target of the push. Valid values:
|
ALL |
| TargetValue |
string |
Yes |
Values depend on the Target value. Separate multiple values with commas. If you exceed the limit, send multiple requests.
|
ALL |
| ApnsEnv |
string |
Yes |
iOS notifications use Apple’s APNs service. Specify the environment.
|
DEV |
| Title |
string |
No |
The title of the notification.
|
title |
| Body |
string |
Yes |
The body text of the notification. |
Hello World |
| JobKey |
string |
No |
A custom ID for the push task. If you specify a JobKey, the delivery log includes this field. For more information, see Delivery logs. |
123 |
| ExtParameters |
string |
No |
A custom key-value map for developer extensions. Note
For iOS devices, pass this parameter as a JSON object. Otherwise, parsing fails. |
{"k1":"ios","k2":"v2"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| MessageId |
string |
The message ID for this push request. |
9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC |
| RequestId |
string |
The request ID. |
501029 |
Examples
Success response
JSON format
{
"MessageId": "9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC",
"RequestId": "501029"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.