From 6a97dc5e07ace559b766482ca1ee1a187ffb5d0c Mon Sep 17 00:00:00 2001 From: Mathias Verdon Date: Sat, 5 Nov 2022 04:43:09 +0800 Subject: [PATCH] fix(diagnostic): add new Android runtime permissions for Bluetooth (#4402) --- src/@awesome-cordova-plugins/plugins/diagnostic/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts b/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts index 8ab4f20fc..75b49856d 100644 --- a/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts +++ b/src/@awesome-cordova-plugins/plugins/diagnostic/index.ts @@ -66,6 +66,9 @@ export class Diagnostic extends AwesomeCordovaNativePlugin { WRITE_EXTERNAL_STORAGE: 'WRITE_EXTERNAL_STORAGE', READ_EXTERNAL_STORAGE: 'READ_EXTERNAL_STORAGE', BODY_SENSORS: 'BODY_SENSORS', + BLUETOOTH_ADVERTISE: "BLUETOOTH_ADVERTISE", + BLUETOOTH_SCAN: "BLUETOOTH_SCAN", + BLUETOOTH_CONNECT: "BLUETOOTH_CONNECT", }; @CordovaProperty() @@ -113,6 +116,7 @@ export class Diagnostic extends AwesomeCordovaNativePlugin { SENSORS: ['BODY_SENSORS'], SMS: ['SEND_SMS', 'RECEIVE_SMS', 'READ_SMS', 'RECEIVE_WAP_PUSH', 'RECEIVE_MMS'], STORAGE: ['READ_EXTERNAL_STORAGE', 'WRITE_EXTERNAL_STORAGE'], + NEARBY_DEVICES: ["BLUETOOTH_ADVERTISE", "BLUETOOTH_SCAN", "BLUETOOTH_CONNECT"], }; locationMode = {