Last edited on 2026-08-21
- Retrieves the basic App information of a multi-platform application
- Note: SDK >= 1.3.10
Change Notification
- When SDK >= 1.4.X,
miniappId and moduleId are now included in the return values. For their meanings, refer to the documentation.
Return Value Object
| Parameter |
Type |
Description |
| enableDebug |
boolean |
Whether debugging is enabled |
| fontSizeSetting |
number |
User's font size (in px) |
| fontSizeScaleFactor |
number |
Font scale factor |
| host |
object |
Host App environment information |
| language |
string |
System language |
| SDKVersion |
string |
Base Library version |
host
| Parameter |
Type |
Description |
| appId |
string |
The Id of the multi-platform application. It is not the AppID of Mini Program |
| miniappId |
string |
The Id of the multi-platform application; newly returned when SDK >= 1.4.X |
| moduleId |
string |
The Id of the multi-platform application resource package; newly returned when SDK >= 1.4.X |
| appVersion |
string |
The application version of the multi-platform App. The corresponding value is version in project.miniapp.json |
| versionCode |
string |
The versionCode of the App (the corresponding value is versionCode in project.miniapp.json); returned when Android SDK >= 1.4.8; returned when iOS >= 1.4.17 |
| env |
string |
Runtime environment, value is "SAAASDK" |
| packageName |
string |
The package name corresponding to the Android application, returned on Android systems |
| bundleIdentifier |
string |
The Bundle ID corresponding to iOS, returned on iOS systems |
| sdkVersion |
string |
SDK version (the corresponding value is sdkVersion in project.miniapp.json) |
| version |
string |
The numerical value of the SDK version number |
Update Description for the Language Mapping in the getAppBaseInfo Return Value for iOS Apps
| Original Value |
Actual Return Value |
| zh-Hans |
zh_CN |
| zh-CN |
zh_CN |
| zh-Hant |
zh_TW |
| zh-TW |
zh_TW |
| zh-HK |
zh_HK |
- For any other languages that do not match the above mappings, the actual system setting lang is returned. For example: el-CN returns el