All Products
Search
Document Center

Mobile Platform as a Service:Manage configurations

Last Updated:Oct 30, 2023

As a developer, you can add necessary switch configuration items in Mobile Delivery Service > Configuration management in the mPaaS Console and deliver the configuration items by platform, whitelist or percentage, version, device model, Android or iOS version and other information.

Prerequisite

Install the switch configuration service SDK on the Android or iOS client.

Add configuration items

You can add configuration items one by one, or import a JSON file to add the configuration items in batches.

The switch configuration list shows information including the configuration keys, creation time, update time, creator, and modifier. The newly created configuration item is activated by default.

Add a configuration item

Log in to the mPaaS console, and complete the following steps:

  1. From the navigation bar on the left, click Mobile Delivery service > Configuration management.

  2. Click Add configuration, add Configuration key, Resource value, and choose Platform and Type. The resource value is the value of the configuration key. A configuration key may have multiple resource values. Click the Add button to set multiple resource values.

  3. (Optional) Click Add on the right of Advanced rule, and set version, osVersion, device model, and city to deliver the configuration selectively.

  4. Click Finished after you complete the configurations, and the items will appear in the configuration list.

Batch import

On the Configuration Switch Management page, click More operations > Import file, and import a JSON file containing configuration items. The configuration items will appear in the list after import succeeded.

Important

If the configuration item in the file already exists in the file, the item will not be imported.

In addition to batch import function, MDS also supports exporting the configuration items. On the Configuration Switch Management page, click More Operations> Configuration Export to download the JSON configuration file to the local.

Search for a configuration item

On the Configuration switch management page, enter a keyword to search for the configuration item.

Modify a configuration item

Complete the following steps to modify a configuration item:

  1. On the Configuration switch management page, select the target configuration item and click Modify.

  2. Edit the Note, Resource value, Platform, Type or Advanced rule field based on your needs, and click Finished. The configuration key cannot be modified.

Activate/Deactivate a configuration item

The newly created configuration item is activated by default. If you don’t need a configuration, you can click Disable to deactivate the configuration item. Likewise, for disabled configuration items, click Activate to make them take effect again.

What to do next

After the switch key is released through the console, the client can obtain the key value corresponding to the switch key by calling interfaces: