增加权限
This commit is contained in:
parent
c6061b31b3
commit
1f7b7fa92f
@ -20,6 +20,7 @@
|
||||
"modules" : {
|
||||
"Barcode" : {},
|
||||
"Bluetooth" : {},
|
||||
"Camera" : {},
|
||||
"SQLite" : {}
|
||||
},
|
||||
/* 应用发布信息 */
|
||||
@ -41,14 +42,15 @@
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.BLUETOOTH_CONNECT\"/>",
|
||||
"<uses-permission android:name=\"android.permission.BLUETOOTH_SCAN\"/>"
|
||||
],
|
||||
"minSdkVersion" : 22
|
||||
"minSdkVersion" : 27
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {
|
||||
"dSYMs" : false,
|
||||
"idfa" : false
|
||||
"dSYMs" : false
|
||||
},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {},
|
||||
@ -83,6 +85,14 @@
|
||||
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"splashscreen" : {
|
||||
"androidStyle" : "common",
|
||||
"android" : {
|
||||
"hdpi" : "static/splash/480.png",
|
||||
"xhdpi" : "static/splash/720.png",
|
||||
"xxhdpi" : "static/splash/1080.png"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nativePlugins" : {
|
||||
|
@ -206,6 +206,8 @@
|
||||
}, (e) => {
|
||||
console.error('prmission grant error: ' + e);
|
||||
});
|
||||
plus.android.requestPermissions(["android.permission.BLUETOOTH_CONNECT"]);
|
||||
plus.android.requestPermissions(["android.permission.BLUETOOTH_SCAN"]);
|
||||
// initBL();
|
||||
},
|
||||
onUnload() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user