Not able to scan devices when the app is in Background.
Behaviour in Android -
Scanning is working when the app is in the minimised state but not working when the app is in a killed
state/when the phone is locked.
Behaviour in iOS -
Scanning not working when the app is in minimised state and also not working when the app is in a killed state/when the phone is locked.
Expected Behaviour -
Scanning should work in all the states of the app life cycle.
Plugin used - flutter_blue_plus
,Workmanager
.
Tried giving all the background permissions and using workmanager but scanning only works when the app is foreground or in the minimised state in Android and only in the foreground state in ios. Expected Behaviour - Scanning should work in all the states of the app life cycle.