native 注入信息。注意某些值只有WebView有。
| 方法名称 | 方法说明 | 平台兼容性 |
|---|---|---|
| appInfo | 和当前 app 有关信息 | iOS Android |
| appInfo.hybridId | 当前应用 hybridId | iOS Android |
| appInfo.page | 当前页面pageName,只有 WebView 中能获取到 | iOS Android |
| appInfo.pageId | 当前页面pageId,只有 WebView 中能获取到 | iOS Android |
| appInfo.param | 携带参数,只有 WebView 中能获取到 | iOS Android |
| deviceInfo | 当前设备信息 | iOS Android |
| deviceInfo.isBeta | 是否是 beta 调试版本 | iOS Android |
| deviceInfo.nativeStart | 开始启动时间 | iOS Android |
| deviceInfo.oSVersion | 操作系统版本 | iOS Android |
| deviceInfo.platform | ios, android | iOS Android |
| deviceInfo.scheme | QunariPhone, qunaraphone | iOS Android |
| deviceInfo.vid | 客户端发版版本 | iOS Android |
| deviceInfo.notchInfo | 挖孔屏信息 | Android |
| deviceInfo.notchInfo.notch | true/false 是否是挖孔屏 | Android |
| deviceInfo.notchInfo.notchSize | 挖孔屏size信息 | Android |
| deviceInfo.notchInfo.notchSize.height | 挖孔屏size信息 高度 | Android |
| deviceInfo.notchInfo.notchSize.width | 挖孔屏size信息 宽度 | Android |
| deviceInfo.immersive | 是否开启了强制沉浸式状态栏 | Android |
| deviceInfo.immersiveOffset | 沉浸式状态栏偏移量(高度) | Android |