SpeedcuberOSS / speedcuber-timer

The smart, offline-ready speedcubing Android/iOS app made for speedcubers, by speedcubers.
Mozilla Public License 2.0
3 stars 0 forks source link

bug(ios): Erroneous "No Bluetooth Message" on first scan attempt #87

Closed thehale closed 1 year ago

thehale commented 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

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.