flutter_reactive_ble icon indicating copy to clipboard operation
flutter_reactive_ble copied to clipboard

Scanning doesn't stop when Bluetooth is disabled on iOS

Open jobfeikens opened this issue 4 years ago • 2 comments

I expect the device scan stream to throw an error when Bluetooth is disabled in iOS settings (Like it does in Android). Is this intended behaviour?

jobfeikens avatar Jan 10 '22 12:01 jobfeikens

@werediver I thought there were some guards against that as well in the iOS implementation can you answer this?

remonh87 avatar Jan 11 '22 18:01 remonh87

It seems CBCentralManagerDelegate does not explicitly return discovery errors, which means we'd need an explicit rule "if BLE status changes to 'off' while in discovery, throw an exception". We don't currently have such rules implemented.

werediver avatar Jan 12 '22 15:01 werediver