Background:
I am developing an Android app that monitors for specific beacons in the background, and upon entry detection, will perform custom coding. I am currently exploring this using Android Beacon Library, and is able to detect the beacon responsively most of the time when the screen is On (within seconds).
However, when the screen is off, the responsiveness drops and may take minutes to half and hour to detect.
I am wondering if there are ways to improve responsiveness as my usage scenario requires a responsive background detection without having to turn on the phone (looking at a reliable < 1 minute response time).
I am using Android 8 to test at the moment, but will need to support Android 6+ eventually.
Specific questions:
1) Using Android Beacon Library, I am experimenting with the reference app with the line "new BackgroundPowerSaver(this)". Does removing this line improve responsiveness (in Android 5-7, Android 8) at a cost of more power usage?
2) When I tried to remove the "new BackgroundPowerSaver(this)" line, the app stop working (unable to monitor, nor do ranging). I have added Bluetooth and fine-locations permissions in my manifest. How do I make this work without the backgroundpowersaver?
3) Besides Android Beacon Library, I have yet to explore other SDKs such as those from Kontakt and Estimote. Are these SDKs able to support a more responsive background monitoring compared to Android Beacon Library?
4) Besides Android Beacon Library, if I use Android bluetooth APIs directly, possible to get achieve the responsiveness required in background? Any reference applications?
Thanks.