All Products
Search
Document Center

Mobile Platform as a Service:Switch configurations

Last Updated:Jun 08, 2026

Lists the switch configuration keys for miniapps in mPaaS, including keepalive, permissions, UI, and update settings.

Key

Value

Description

enable_keep_alive

YES or NO. Default: NO

Enables keepalive.

mriver_keep_alive_time

Milliseconds. Default: 60000

Background keepalive duration for miniapps.

mriver_keepalive_max

An integer from 1 to 5. Default: 2

Maximum number of miniapps kept alive in the background.

mriver_force_perm_check

YES or NO. Default: NO

Forces permission verification.

mriver_custom_appxloading

Resource address. Default: empty

Custom apploading address.

mriver_custom_appxloading_size

An integer from 10 to 60. Default: 30

Custom appxloading control size. `30` sets width and height to 30% of screen width.

enable_back_perform

YES or NO. Default: NO

Enables back button interception.

mr_showOptionMenu

YES or NO. Default: YES

Shows the menu in the title bar.

mr_showShareMenuItem

YES or NO. Default: NO

Shows the Share option in the menu bar.

mr_request_support_gzip

YES or NO. Default: NO

Enables gzip for the httpRequest JSAPI.

h5_nbmngconfig

JSON. Default: {"config":{"al":"3","pr":{"4":"86400","

+ "common":"864000"},"ur":"1800","fpr":{"common":"3888000"}},"

+ ""switch":"yes"}

Automatic update interval for miniapps. Modify the `ur` value to change the interval. Default: 1800 seconds (30 minutes).

miniapp_location_enable_search

YES or NO. Default: NO

Enables location search.

miniapp_location_enable_all_search

YES or NO. Default: NO

Enables nationwide search for location selection.

ariver_appcompact_compatible

true or false. Default: false

Enables miniapp page-switch animation compatibility with AndroidX AppCompat 1.3+.

ta_systeminfo_update_setting

YES or NO. Default: NO

Includes permission request status in `getSystemInfo` results.

mriver_show_debug_menu_all

YES or NO. Default: NO

Shows the debug panel entry in all miniapps.

mr_use_inner_net

YES or NO. Default: NO

Enables httpRequest concurrency optimization for miniapps.

mriver_check_foreground_change

YES or NO. Default: NO

Checks keepalive status on desktop resume. Not required for multi-stack keepalive.

ariver_supportStatusBar

true or false. Default: true

Controls the default status bar color. Set to `false` for immersive mode.

mr_tiny_video_type

Default: 0

Video player type. Set to `3` to use the new player.

ta_worker_init_low_version_compat

YES or NO. Default: NO

(Build.VERSION.SDK_INT == 22 || Build.VERSION.SDK_INT == 21) ? "YES" : "NO"