capacitor-community/bluetooth-le

Enable function not working on Android

ricklens opened this issue · 2 comments

Describe the bug
When disabling the Bluetooth adaptor, calling the enable function doesn't enable the BT adaptor, keeps raising an excepition : Enable Failed.

Also I am able to process data even if the Bluetooth adaptor is disabled.

pwespi commented

What version of Android are you using? And what device are you testing on?

The underlying enable and disable methods of BluetoothAdapter in Android are deprecated. See https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable(). So the methods will be removed in a future version of the plugin and might already stop working on newer Android phones. I just added a deprecation note to the docs about this.

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day!
Capacitor Community Bot 💙