Trigger Local notification of a killed / closed iBeacon detection application

I triggered a local notification when the application enters the iBeacon realm. I used the CLLocationManager to continuously monitor location changes.

The app works great both in Foreground and in the background, which triggers a local notification when the device enters the iBeacon area.

I want to trigger a local notification when the device enters the iBeacon Region, even if the application does not start once (or) if the application is abandoned / terminated / killed

+5
source share
1 answer

No special programming is required to complete this work. If you can make this application in the background, it should also work after the application is killed or rebooted (if there is enough time to pass for CoreLocation to initialize.)

If you do not see this work, there may be a problem installing the test:

  • Make sure you leave the beacon zone before killing the application or restarting.

  • Long enough to wait. In some cases, detection may take up to 15 minutes.

+1
source

Source: https://habr.com/ru/post/1264777/


All Articles