

English
The App side is divided into different modules according to the function. When the project uses a specific function, choose to include the corresponding module, avoiding useless code or third-party SDK when the App is packaged, and reducing the size of the App installation package.
If the relevant API is used, but the corresponding functional module is not checked, the following module missing prompt box will pop up at runtime:
碰到此情况请勾选对应缺失的模块,并重新提交云端打包
The modules added in the new version of HBuilderX may not have a visual configuration interface in the old version, so they can be manually configured in the source code view Manually add in "app-plus" -> "modules" in the "source view" of the project's manifest.json file:
{
"app-plus" : {
"modules" : {
"Barcode" : {},
"Camera" : {}
},
//...
},
//...
}
The key name of the added item under modules is "Module ID", which can be found below **function module ** found in
Module Name | Module Identifier | Functionality | Description | Supported Platforms |
---|---|---|---|---|
Barcode (scan code) | Barcode | Call camera scan code function | HBuilderX3.6.11+ new | Android, iOS |
Bluetooth (Bluetooth Low Energy) | Bluetooth | Use the device's Bluetooth function | Android, iOS | |
Camera&Gallery (camera and photo album) | Camera | Call the camera to take pictures, access or modify the photo album | HBuilderX3.6.11+ new | Android, iOS |
Contact (Contacts) | Contact | Access or modify system contacts | Android, iOS | |
FaceID (Face Recognition) | FaceID | Access System Face Recognition | iOS | |
Fingerprint | Fingerprint | Access System Fingerprint | Android, iOS | |
Geolocation (positioning) | Geolocation | Get location information | Need to configure a third-party SDK, Details | Android, iOS |
iBeacon | iBeacon | Access iBeacon Devices | Android, iOS | |
LivePusher (live streaming) | LivePusher | Call camera video to push to the server | Android, iOS | |
Maps (map) | Maps | Use the map function | Need to configure a third-party SDK, Details | Android, iOS |
Messaging (short color email message) | Messaging | Send SMS, MMS, email and other functions | Android, iOS | |
OAuth (login authentication) | OAuth | Use the three-party login function | Need to configure the three-party SDK, Details | Android, iOS |
Payment (payment) | Payment | Use the third-party payment function | Need to configure the third-party SDK, Details | Android, iOS |
Push (message push) | Push | Use the message push function | Need to configure a third-party SDK, Details | Android, iOS |
Record (recording) | Record | Call microphone recording | HBuilderX3.6.11+ new | Android, iOS |
Share (Share) | Share | Use the three-party sharing function | Need to configure the three-party SDK, Details | Android, iOS |
Speech (voice input) | Speech | Use speech recognition input function | Need to configure a third-party SDK, Details | Android, iOS |
Statistic (statistics) | Statistic | Use the three-party statistical function | Need to configure the three-party SDK, Details | Android, iOS |
SQLite(数据库) | SQLite | 使用SQLite数据库功能 | Android、iOS | |
uni云端一体安全网络 | - | 使用安全网络功能 | 需配置uniCloud,详情 | Android、iOS |
VideoPlayer (video playback) | VideoPlayer | Use video template function | Android, iOS | |
Android X5 Webview (Tencent TBS) | Webview-x5 | Use Tencent X5 Webview kernel | Details | Android |
iOS UIWebview | UIWebview | Use UIWebview kernel | Details | iOS |
Orientation (Sensor) | Orientation | Orientation Sensor | No longer maintained | Android, iOS |
In order to prevent the App privacy compliance detection report from including sensitive permissions such as microphone, camera/photo album, and motion, starting from HBuilderX3.6.11, the App package contains Barcode (scan code), Camera&Gallery (camera and photo album), and Orientation (sensor) by default. , Record (recording), etc. are adjusted as independent functional modules. After updating to HBuilderX3.6.11 version, the above functions will not be included by default in cloud packaging. You need to manually check the modules to be used in the "App Module Configuration" of manifest.json. Orientation (sensor) will no longer be maintained, and no visual interface configuration is provided in manifest.json. If you want to continue using it, please manually add "app-plus" -> "modules" in "source view" of manifest.json Orientation", as follows:
"app-plus" : {
"modules" : {
"Orientation": {
}
}
}