Broadcast push is used to push the same message to all Android and iOS devices in the whole network. You can use it to meet some operation needs.
Broadcast push does not support pushing messages by user ID. It only supports pushing messages to Android and iOS devices All Android devices that set up connections in the message validity period can receive group messages, whereas all the iOS devices that are connected in the message validity period may receive group messages.
- Since manual operations are required, we recommend you push messages through the console in the scenarios requiring low-frequency message push, such system verification, operation support, and temporary emergency requirement.
- The messages are pushed immediately after they are created. You cannot delete or modify them.
The following sections describe how to create a multiple push message in the console.
- To push messages to iOS devices, you should configure the iOS push certificate on the Push configuration page in advance. For more information, see Configure iOS push certificate.
- To use the third-party channels, you should configure the push channels on the Channel configuration page in advance. For more information, see Channel configuration.
- Before creating a broadcast push task, you need to prepare a template. For how to create a template, see Create a message template.
Log in to the mPaaS console, select the App, and perform the following steps to create a message:
- In the left-side navigation pane, choose Message Push Service to enter the Message list tab on the right side of the page.
- Click the Create a message button, and in the pop-up dialog box, select the Broadcast push tab.
On the broadcast push tab page, configure the basic information of the message. The configuration items are as follows:
Parameter Required Description Push platform Yes Select a push platform to specify the type of target devices. Options:
- Android: MPS uses Android manufacture channel and self-built channel to push messages to all online Android devices (before the expiration of these messages) in the entire network. Messages are pushed to each device only once.
- iOS: MPS uses a third-party channel to push messages to iOS device users (users currently logged in or users who have once logged in but are currently logged out) in the entire network. Messages are pushed to each user only once.
Customer message ID Yes Customer message ID is automatically generated by the system to uniquely identify the message in the client’s system. It can be customized and a maximum of 64 characters are allowed. Template Yes Choose a message template from templates listed on the Message template page. Android message channel Yes The system provides different options according to the display type of the selected message template (only for the Android push platform):
- When the display type is Show message (on notification bar): Both options (Default channel and MPS self-built channel) are selectable.
- When the display type is Silent push: MPS self-built channel is selected by default, and you cannot modify it.
- Default channel: MPS uses third-party channels to push messages. When your App is not connected to the third-party channel, or it is connected to the third-party channel but the target device is not manufactured by the third party, the system uses an MPS self-built channel to push messages.
- MPS self-built channel: MPS uses a self-built channel to push messages.
Display type Yes The system automatically selects the display type corresponding to the selected template and you cannot modify it.
- Show message (notification bar): Indicates that the message will be displayed in the notification bar.
- Silent push: Indicates that the message will not be displayed in any form on the target device.
- MPS self-built channel: This parameter is sent to the client as a reference field. You need to parse the message body and get the content of this field, then control the display of the message.
- Third-party channel: This parameter is sent to the target device as a field. The device vendor’s system will then parse the content of this field, and control the display of the message. You do not need to perform any other operations.
Operate upon click Yes The system makes an automatic selection according to the configuration in the selected template and you cannot modify it. Template placeholder Yes Enter variable values in the template. The system provides configuration options for placeholders in the selected template.
The preview area is on the right side of the Create a message window. To preview the message display effects for different platforms respectively, click Notification, iOS message body and Android message body.
(Optional) Configure the advanced information on demand. In the Advanced information area, complete the following configurations:
- Valid period: Specify the valid period of the message in seconds. It is 180 seconds by default. To ensure the message arrival rate, when a message fails to be sent because the device is offline or the user is logged out, MPS will resend it after the device is connected or a user binding request is initiated within the validity period of the message.
- Login status: enables you to select the type of target users for broadcast push on the iOS platform based on their login status. Valid values:
- Login users: pushes messages to logged-in users on the entire network.
- Login users + logout users: pushes messages to users currently logged in or users who have once logged in but are currently logged out.
Logout period: when you choose Login users + logout users as the login status, you need to set this parameter to select the logged-out user groups to push messages to. Valid values:
- 7 days: pushes messages to users who logged out in recent 7 days.
- 15 days: pushes messages to users who logged out in recent 15 days.
- 60 days: pushes messages to users who logged out in recent 60 days.
- Permanent: pushes messages to all logged-out users.
Extension parameters: Turn the switch on, click Add parameter, set the key/value, and left click on any area of the page to complete setting. The extension parameters are passed to the client together with the message body for your use.
Extension parameters include the following three types:
- System extension parameters
These extension parameters are occupied by the system, and cannot be modified. System extension parameters include:
- System extension parameters with some significance
These extension parameters are occupied by the system and have some significance. You can configure values of these extension parameters.
For more information about these parameters, see the following table.
Parameter Description sound The custom ringtone of the message. The value of this parameter is the path of the ringtone. This parameter is only valid for Xiaomi phones and iPhones. badge Badge number. Its value is a specific number. This extension parameter will be passed to the client together with the message body.
- For Android devices, you need to implement the badge logic by yourself.
- For iOS devices, iOS system automatically implements the badge logic. When a message is pushed to the target mobile phone, the number that you specified in value appears in the badge of the App icon.
mutable-content The APNs custom push identifier. If a pushed message carries this parameter, it indicates that the UNNotificationServiceExtension of iOS10 is supported, otherwise it is a normal push. Value is set to
badge_add_num Accumulative badge number, only available in Huawei channel. badge_class Activity class corresponding to the desktop App icon in Huawei channel. big_text Big text style, the value is fixed to 1, and other values are invalid. This parameter is only valid for Xiaomi and Huawei phones.
- User-defined extension parameters
All other parameters than system extension parameters and system extension parameters with some significance are user-defined extension parameters. User-defined extension parameters are passed to the client together with the message body for your use.
- System extension parameters
Click Submit, and the message will be pushed to the target devices.