A synchronization configuration defines the basic application scenario of data push. And the actual data push actions can be realized based on the synchronization configuration. Therefore, you need to add synchronization configuration before sending data.
Log in to mPaaS console, click the mPaaS App for which you want to add configuration, and complete the following steps.
Procedure
On the left navigation pane, choose Mobile Sync Service under Backgrund service.
Click the Configuration Management tab, and then click New Synchronization configuration. The New Synchronization configuration page appears.
Set parameters.
The following table describes the parameters.
Parameter
Description
Synchronous identification
Identifies a specific data push business scenario. The format of uppercase letters with a hyphen (-), such as DEVICE-LOCK, is recommended.
Push Description
Describes the business scenario corresponding to the configuration.
Push Range
Used to indicate the scope of users or devices that can receive data in the data push process. Global Push means all users or devices can receive it; Specify Push means only a specified user or device can receive it.
Push Object
Indicates whether the data push is targeted at a user or a device.
Multi-device synchronization
This option must be selected only when the push target is a user. If selected as Yes, it indicates that data synchronization is enabled across multiple devices for a single user, meaning the user will still receive data previously received on their previous device when switching devices.
Data persistence
Pushed data will be saved to the database for a maximum of 30 days by default. If a user is offline when data is pushed, the user will receive the data when going online.
Re-push mode
Specifies the policy for processing the backlog data on the server. This parameter is available only when Data persistence is set to Yes. When All is selected, all the backlog data on the server will be pushed to the client. When Threshold is selected, only the latest backlog data within the threshold will be pushed to the client.
Repush threshold
This parameter is available only when Data persistence is set to Yes and Re-push mode is set to Threshold.
User consistency check
This parameter is available only when Target is set to User. If you set this parameter to Yes, MSS will verify user consistency when pushing data and push data only when user consistency check is successful. For more information, see Verify user consistency.
After setting the above information, click OK to complete adding the synchronization configuration. The newly added synchronization configuration becomes online by default.
Once a configuration is taken online, you can push data by calling APIs or performing actions in the console.