ble icon indicating copy to clipboard operation
ble copied to clipboard

Bluetooth error on old devices with android 11

Open cristiandaulisio opened this issue 5 months ago • 1 comments

I updated at android sdk 36 and now it work fine on devices with android 15, but i have this error on my other device with android 11

[BluetoothError]:Cannot read properties of undefined (reading 'Authorized'),arguments: {"filters":[],"seconds":6,"avoidDuplicates":true},,nativeException: undefined,,method: "startScanning"

how can i fix it?

Thanks

cristiandaulisio avatar Aug 04 '25 08:08 cristiandaulisio

@cristiandaulisio i am not sure about why it works on android 16 and not on android 11 What i can tell you about the error is that it comes from this line https://github.com/nativescript-community/ble/blob/master/src/ble/index.android.ts#L1244 or one a bit after with Status.Authorized It seems like Status is undefined in your case. It comes from @nativescript-community/perms. Could you check which version of the perms package is in your node_modules? thanks

farfromrefug avatar Sep 03 '25 09:09 farfromrefug