I have been doing some reading about CLBeaconRegion
and I have setup some iBeacons successfully and had it trigger location updates, even while the application is in the background.
However, from what I've read and carry over from CLRegion
, I understand that it should be possible to hit locationManager:didEnterRegion:
after the application is terminated.
I've setup my CLBeaconRegion
like this:
beaconRegion = [[CLBeaconRegion alloc] initWithProximityUUID:[[NSUUID alloc] initWithUUIDString:SERVICE_UUID]
major:0
minor:0
identifier:BEACON_ID];
[beaconRegion setNotifyOnEntry:YES];
[beaconRegion setNotifyOnExit:YES];
[beaconRegion setNotifyEntryStateOnDisplay:YES];
But I am not able to trigger the CLLocationManager
's delegate from termination. I've left the region (confirmed by a notification), travelled further away from the beacon, waited for 30 seconds, then travelled back to the beacon, but it does not trigger the delegate while terminated (works great while in the background and foreground).
Should this work from termination? Am I missing something? Any help would be great.