evothings / phonegap-estimotebeacons

This repository is no longer maintained - new maintainer is welcome!
MIT License
338 stars 178 forks source link

detect iBeacon even if the app is killed #117

Open veken1199 opened 8 years ago

veken1199 commented 8 years ago

what I want to do is to receive a local notification when the users walk into a region and the bluetooth is on but the app is not running on the device. is it possible to trigger the app based on ibeacon detection in android?? if yes, how? is it possible on iOS? what alternative do I have ? thank you

RikdeVos commented 7 years ago

With the cordova ibeacon plugin you can do region monitoring, which even works when the app is killed on iOS: https://github.com/petermetz/cordova-plugin-ibeacon

For android you'll the cordova background mode plugin from katzer to keep the app running in the background.

Update: You can only detect the ibeacon if you have its uuid, major & minor though, so you cannot search for all beacons. However, you can monitor multiple ibeacons at the same time.