flutter_blue_plus with flutter_foreground_task combination failes, when app get backgrounded
I am trying to combine flutter_foreground_tasks with BLE scanning, whether the app is running visibly or in the background, everything works perfectly. But as soon as I turn off the screen and the log message goes through. I/FA (24762): Application backgrounded at: timestamp_millis: ...
nothing works anymore. No matter how I try it. With continuous scanning, or every 6 seconds in onRepeatEvent (so that startScan is not called more than 5 times in 30s), it no longer delivers any results.