Android/iOS configuration management

更新时间:
复制 MD 格式

Managing feature flags across mobile clients becomes error-prone when you need to target specific user segments without releasing a new app version. The mPaaS console lets you create, modify, and toggle feature flags under Mobile Delivery Service > Configuration management, with targeting rules based on platform, allowlist, percentage rollout, version number, device model, or OS version.

Prerequisites

Before you begin, ensure that you have:

  • The SDK for the switch configuration service added to your Android or iOS client

Add feature flags

Add feature flags one at a time, or import a JSON file to add multiple flags at once.

The flag list shows the configuration key, status, creation time, update time, creator, and last modifier for each flag. New flags are enabled by default.

Add a single flag

  1. In the navigation pane, click Mobile Delivery Service > Configuration management.

  2. Click Add Configuration. On the Create a configuration page, enter a configuration key, note, and value, then select the platform and type. A configuration key can have multiple values. To add more values, click Add.

    image.png

  3. (Optional) Add targeting conditions to reach specific users. In the value configuration box, click Add next to Advanced Rules. Select a resource type (such as version, osVersion, device model, or city) and an operation, then enter the corresponding value. You can add multiple conditions per value.

    image.png

  4. Click Finished. The new flag appears in the configuration list.

Batch import

On the Configuration Switch Management page, click More operations > Import file above the list. Import a JSON file containing one or more feature flags. After a successful import, the flags appear in the configuration list.

Important

If a flag in the import file already exists in the console, it cannot be imported.

The mPaaS console also provides a configuration export feature. On the Configuration management page, click More Operations > Configuration Export. Select the flags to export, then click Configuration Export to download a JSON file.

Search for a flag

On the Configuration Switch Management page, enter a keyword from the configuration key to filter the list.

Modify a flag

  1. On the Configuration Switch Management page, click a configuration key to open its edit page.

  2. Update the note, value, platform, type, or Advanced rule, then click Finished. The configuration key cannot be modified after it is added.

Enable or disable a flag

New flags are enabled by default. To disable a flag, click Deactivate in the flag list. To re-enable a disabled flag, click Activate.

What to do next

After publishing a flag in the console, retrieve its value from the client by calling an API: