Focus scan iBeacon

I wrote my own little BLE scan service, which runs through the alarm every 3-5 seconds. It scans for 1.1 seconds to get beacons around it, and then transforms the RSSI signal into rough proximity.

Now I'm looking at the iBeacon service for Radius Networks for Android, but I'm wondering how I could implement the same background scan.

For example: I want scannign beacons to run annd in the background and receive Intents in the broadcast receiver to decide what I am doing with the verified beacons.

Are there any soem examples and is there a count of the amount of battery consumed?

+6
source share
1 answer

The Radius Networks Android iBeacon Library does just that. All you need to do to run it in the background binds IBeaconManager to something with a long life cycle. This can be a custom android.app.Application object or a custom service. Since you have already created your own service for your application, you can easily bind IBeaconManager to this service and it will remain active in the background while the service is running. You can also use your service to send broadcast intentions if you want, but for most use cases this is probably not required.

Regarding battery usage, in the help app

+8
source

All Articles