插件安装
cordova plugin add cordova-plugin-android-permissions
config.xml中添加所需权限
根目录config.xml中添加所需权限
<platform name="android">
<config-file parent="/*" platform="android" target="AndroidManifest.xml" xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission...
展开全文