Closed thehale closed 1 year ago
The first time a speedcuber tries to scan for smartcubes from the iOS app always pops up an error message stating that Bluetooth is not available.
According to the docs of react-native-ble-plx
react-native-ble-plx
When iOS application launches BLE stack is not immediately available and we need to check its status.
It would seem that we need to make sure to wait a second to see if the stack is available before immediately asserting that it's off.
The first time a speedcuber tries to scan for smartcubes from the iOS app always pops up an error message stating that Bluetooth is not available.
According to the docs of
react-native-ble-plx
It would seem that we need to make sure to wait a second to see if the stack is available before immediately asserting that it's off.