BLE Scanning Issue on iOS
I have trouble making the scanning work on IOS, i can't get any event on the scanning callback. The same code on Android and Windows is working perfectly. I have added the permission in the info.plist.
The code:
UniversalBle.onScanResult = (event) { debugPrint("item found!"); }; await UniversalBle.startScan();
There is something that i am missing?
@alessandrodestefani have you tried example app ?
Ok, i have tried an empty project and also the example app. I have found out that on IOS if you don't set UniversalBle.onAvailabilityChange = (state) {}; the first commend startScan will not fire (the global queue will register it and will empty), the second time it will work.
If you have set onAvailabilityChange it will work fine.
@alessandrodestefani please try with this PR
Released in 0.14.0