I'm using AltBeacon library inside service to find my beacon every 1 second when the app on foreground. On Galaxy s7 when the app go's to background it stop find the beacon every second, instead it return data every few seconds between 5 - 30 secs. I can see that "didRangeBeaconsInRegion" call every second but it return with out beacons most of the time.
I need to keep the behavior of foreground when the app is in background.
This is my BeaconManager configuration:
private static long EXIT_PERIOD = 16500;
private static long SCAN_PERIOD = 1150;
.
.
.
beaconManager = BeaconManager.getInstanceForApplication(this);
BeaconManager.setRegionExitPeriod(EXIT_PERIOD);
beaconManager.setBackgroundScanPeriod(SCAN_PERIOD);
beaconManager.setForegroundScanPeriod(SCAN_PERIOD);
beaconManager.setBackgroundBetweenScanPeriod(0);
Tnx