flutter_reactive_ble
flutter_reactive_ble copied to clipboard
Scanning doesn't stop when Bluetooth is disabled on iOS
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?
@werediver I thought there were some guards against that as well in the iOS implementation can you answer this?
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.