# App Platform ## App 平台注意事项 在 App 平台(iOS/Android)使用 uView UI 时的特殊注意事项。 ### manifest.json 配置 ```json { "app-plus": { "usingComponents": true, "nvueStyleCompiler": "uni-app", "splashscreen": { "alwaysShowBeforeRender": true, "waiting": true, "autoclose": true, "delay": 0 }, "distribute": { "android": { "permissions": [ "" ] }, "ios": {} } } } ``` ### 权限配置 #### Android 权限 ```json { "app-plus": { "distribute": { "android": { "permissions": [ "", "", "" ] } } } } ``` #### iOS 权限 在 manifest.json 中配置,或在 Xcode 中配置 Info.plist。 ### 原生插件 App 平台可以使用原生插件: ```javascript // #ifdef APP-PLUS // 使用 5+ API plus.device.getInfo((info) => { console.log('设备信息', info) }) // 使用原生插件 const plugin = uni.requireNativePlugin('your-plugin-name') // #endif ``` ### 条件编译 ```vue ``` ### 状态栏适配 ```vue ``` ### 注意事项 1. **权限配置**:根据功能需求配置相应权限 2. **原生插件**:可以使用原生插件扩展功能 3. **性能优化**:App 平台需要注意性能优化 4. **打包配置**:正确配置打包参数 5. **版本号**:正确配置版本号和版本名称