randdusing / cordova-plugin-bluetoothle

Bluetooth Low Energy Phonegap Plugin
804 stars 353 forks source link

Property 'hasPermissionBtScan' does not exist on type 'BluetoothLE' #735

Open santiagoarango31 opened 2 years ago

santiagoarango31 commented 2 years ago

I have installed the 6.7.0 version of cordova-plugin-bluetoothle, but when i import '@awesome-cordova-plugins/bluetooth-le/ngx' (I am using capacitor), i cant see that new methods.

dependencies: "@awesome-cordova-plugins/bluetooth-le": "^5.45.0", "@awesome-cordova-plugins/core": "^5.45.0", "cordova-plugin-bluetoothle": "^6.7.0",

ragcsalo commented 2 years ago

Same issue here (targeting Android 31):

com\randdusing\bluetoothle\BluetoothLePlugin.java:929: error: cannot find symbol
    addProperty(returnObj, "hasPermission", cordova.hasPermission(Manifest.permission.BLUETOOTH_SCAN));
kabaehr commented 2 years ago

Hey, check this: https://github.com/danielsogl/awesome-cordova-plugins/pull/4320

khayargoli commented 1 year ago

Is this already fixed and merged into latest 6.7.0, if not whats the work around.

Please help SIR