Android-BLE-Library icon indicating copy to clipboard operation
Android-BLE-Library copied to clipboard

After disabling phone's bluetooth BleManager.isReady returns true

Open darek607 opened this issue 2 years ago • 1 comments

After disabling bluetooth on the phone, the BleManager.isReady of my connected peripheral still returns true (I tested at least 2 minutes after disabling BT), however the isConnected correctly returns false. Also the DISCONNECTED event is correctly fired in the connection observer.

I'm using isReady to check if a user can interact with peripheral (e.g. after button click in the app). As a workaround I use isReady && isConnected to be sure the device is ready to work, however I would expect that if isConnected is false, the isReady also is false.

Library version: 2.4.1 Devices: Pixel 5 (Android 12), Samsung Galaxy A21S (Android 11)

Thanks for awesome library!

darek607 avatar Jun 07 '22 15:06 darek607

Thanks for the awesome bug report!

We'll look into it shortly.

philips77 avatar Jun 07 '22 15:06 philips77