I am currently working on a Flutter application that involves Bluetooth device discovery in the background. To achieve this, I have tried using the flutter_bluetooth_serial package in combination with flutter_background_service. However, I encountered the error message "Bluetooth is not available" when attempting to discover devices in the background.
I tried using the flutter_bluetooth_serial and flutter_blue package, which produced the same error "Bluetooth is not available". However, when I switched to the flutter_blue_plus package, it successfully scanned devices in the background. But my application relies on serial Bluetooth communication.
I would like to understand why I am encountering this error with flutter_bluetooth_serial and flutter_blue and how I can resolve it?
If you have any insights, tips, or solutions for background Bluetooth device discovery with these packages, your help would be greatly appreciated.
I faced a similar scenario, but after I switched on the Device' location/GPS, Problem solved.