I am using the startScan() function to trigger a request of permissions (I wish there was an explicit function for that TBH). This is done daily, to access a device.
We have observed that very frequently, the startScan() function would fail with a "Bluetooth is disabled" message. Repeating the operation would usually make it disappear (the startScan goes), but often it has to be repeated even more than once. This is annoying from the user perspective as they get an error message.
Any idea why this is happening?
Any suggestion about how to solve it?