Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger Local notification to the killed/Quitted App on iBeacon Detection

I have triggered a Local Notification whenever the application comes into the region of iBeacon. I used CLLocationManager to continuously Monitor the Location changes.

The app is working fine both in Foreground and Background Modes, which triggers the Local Notification whenever the device enters the iBeacon Region.

I want to trigger a Local Notification, when the device enters the iBeacon Region, even If the App is not launched once (or) If the App is Quitted/Terminated/Killed

like image 402
Saravanakumar Gopalakrishnan Avatar asked Oct 30 '22 11:10

Saravanakumar Gopalakrishnan


1 Answers

No special programming is needed to make this work. If you can make your app do this in the background, it should also work after the app is killed or on reboot (if enough time is allowed to pass for CoreLocation to initialize.)

If you are not seeing this work, you may be experiencing a test setup issue:

  • Make sure you have exited the beacon region before killing the app or rebooting.

  • Make sure you wait long enough. In some cases detections can take up to 15 minutes.

like image 53
davidgyoung Avatar answered Nov 15 '22 06:11

davidgyoung