0
votes

I use Android beacon library for scanning beacons. I set this:

mBeaconManager.setBackgroundBetweenScanPeriod(2000);

But scanning period is 10000ms for a while and sometimes 2000ms.

Is there any other code that I must implement?

Thank you.

1

1 Answers

0
votes

If you change the scan periods after you have already bound to the service, you must also call updateScanPeriods(). Like this:

mBeaconManager.setBackgroundBetweenScanPeriod(2000);
mBeaconMaanger.updateScanPeriods()