Bluetooth error on old devices with android 11
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 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