Search code examples
androidregionibeacon-android

Beacon detection in android while application is killed


I managed to get the local notifications to work in my app, when the app is running in the background. I needed to know if I can still be able to get local notifications if the application is killed, it is swiped off from the background and a beacon is nearby the device? Is this possible in Android? If yes,then please let me know how this can be done.


Solution

  • Yes, this functionality is built in to the Pro version of the Android iBeacon Library. The library will automatically start scanning for beacons in the background after phone boot, and will call your app to let it launch local notifications when beacons are detected.

    If a user later kills the app with the task switcher, this will only temporarily halt these detections, as the scanning service will automatically restart itself. Details are here.