ContinuouslyPush

Updated at:

Executes a predefined continuous push task.

Operation description

This operation resolves the issue of the maximum number of targets per call in the Push advanced push operation, regardless of whether the push is based on devices, accounts, or aliases.

  • Using continuous push indicates that the business scenario involves sending the same message to a large number of devices. In this case, call the continuous push operation appropriately. For each call, aggregate a group of devices for the push. Currently, the maximum number of targets per push is 1,000 for device-based, account-based, and alias-based pushes. The total number of pushes for the same MessageId is limited to 10,000. If a higher quota is required, contact technical support to evaluate the specific scenario.

  • Before using this operation, call the Push operation, set Target to TBD (To Be Determined), and specify the message content to obtain the MessageId of the message in the push system. Then, you can repeatedly call this operation based on the MessageId and specify different target groups to push the message to these targets.

  • After you call the Push operation and set the target to TBD to obtain the MessageId, the message is retained in the push system for 24 hours by default. Before the message expires, you can use this operation to push the message to specified targets at any time. Pushes are not allowed after the message expires or the maximum total number of pushes is exceeded.

  • Each time you call this operation to specify devices, the message is pushed immediately. Scheduled pushes are not supported.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

mpush:ContinuouslyPush

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppKey

integer

Yes

The AppKey information.

23267207

MessageId

string

Yes

The message ID.

The MessageId obtained after calling the Push operation and setting Target to TBD. It represents a message that has been saved to the push system.

500131

Target

string

Yes

The push target:

  • DEVICE: Push based on devices.

  • ACCOUNT: Push based on accounts.

  • ALIAS: Push based on aliases.

Continuous push supports only these three target types.

DEVICE

TargetValue

string

Yes

Set this parameter based on Target. Separate multiple values with commas. If the limit is exceeded, push the message in multiple batches.

  • If Target is set to DEVICE, the value is in the format of deviceid1,deviceid2. A maximum of 1,000 devices are supported.

  • If Target is set to ACCOUNT, the value is in the format of account1,account2. A maximum of 1,000 accounts are supported.

  • If Target is set to ALIAS, the value is in the format of alias1,alias2. A maximum of 1,000 aliases are supported.

a692961a92534047ad3625****

Response elements

Element

Type

Description

Example

object

MessageId

string

The message ID that identifies a push.

9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC

RequestId

string

The request ID.

500131

Examples

Success response

JSON format

{
  "MessageId": "9998B3CC-ED9E-4CB3-A8FB-DCC61296BFBC",
  "RequestId": "500131"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.