I have an access system based on BLE controllers and a cloud service. We're going to implement the "hands-free" mode for getting access to the restricted area. It means:
- user don't need to get a smartphone to enable the access (it should work the whole work day)
- the smartphone should scan/find BLE controllers in the background mode.
My thoughts:
Plan 'A' is using a combination of
- Foreground service (working in the active mode)
- FCM high-priority messaging (waking up in the Doze Mode)
Plan 'B' is using the white-list apps of Android to prevent battery optimisation in the Doze mode.