flutter_beacon
flutter_beacon copied to clipboard
Calling initializeAndCheckScanning a second time on iOS results in a hang
I have await blutterBeacon.initializeAndCheckScanning
in my main widget's initState()
On iOS (13.3) when I do a hot restart, and it reinitializes, the code hangs on the call. No errors.
Has anyone experienced this?
Hi @mdanics
Di you already solve you problem? My iPhone 6 stuck at version 12.4, so I can't help much right now.
I have not solved this problem. Further, if I call blutterBeacon.initializeAndCheckScanning
multiple times in the app (without hot restarting) it also hangs on the second time.
I have architected the app around this limitation, and in development, I have to rebuild instead of hot restart.
Maybe some status check for bluetooth state, location permission etc before re-calling initializeAndCheckScanning
again will be helpful.