Estimote / Android-Fleet-Management-SDK

Estimote Fleet Management SDK for Android
https://developer.estimote.com
MIT License
836 stars 451 forks source link

beaconManager.setBackgroundScanPeriod does not comply #68

Closed ahmed-shehata closed 10 years ago

ahmed-shehata commented 10 years ago

The beaconManager.setBackgroundScanPeriod(period,wait) function does not affect the beaconManager. I tried several values and it still scans every 1s.

Any help?

wiktor commented 10 years ago

See demo: https://github.com/Estimote/Android-SDK/blob/master/Demos/src/main/java/com/estimote/examples/demos/NotifyDemoActivity.java

wiktor commented 10 years ago

See demos where it works.

On Wed, Jul 23, 2014 at 11:46 AM, ahmed-shehata notifications@github.com wrote:

The beaconManager.setBackgroundScanPeriod(period,wait) function does not affect the beaconManager. I tried several values and it still scans every 1s.

Any help?

Reply to this email directly or view it on GitHub: https://github.com/Estimote/Android-SDK/issues/68

ahmed-shehata commented 10 years ago

Tried the demo, does not affect scanning period, try it yourself.

beaconManager.setBackgroundScanPeriod(3000, 0); still scans every 1s...

ahmed-shehata commented 10 years ago

The "public void onBeaconsDiscovered" function is the issue, it gets called every 1s, how do I change that?

wiktor commented 10 years ago

See setForegroundScanPeriods method.

On Wed, Jul 23, 2014 at 2:30 PM, ahmed-shehata notifications@github.com wrote:

The "public void onBeaconsDiscovered" function is the issue, it gets called every 1s, how do I change that?

Reply to this email directly or view it on GitHub: https://github.com/Estimote/Android-SDK/issues/68#issuecomment-49866902

ahmed-shehata commented 10 years ago

Is that method also implemented in the iOS SDK? I need the app to be X-platform

Thanks

wiktor commented 10 years ago

No, it is not. Apple exactly states that when ranging for beacons, callback will be invoked once per second.