I am having difficulties getting this to work for when the app is not running. I have locationManager:didRangeBeacons:inRegion: implemented and it is called when th
Here is the process you need to follow to range in background:
CLBeaconRegion always keep monitoring on, in background or foreground and keep notifyEntryStateOnDisplay = YESnotifyEntryStateOnDisplay calls locationManager:didDetermineState:forRegion: in background, so implement this delegate call......like this:
- (void)locationManager:(CLLocationManager *)manager didDetermineState:(CLRegionState)state forRegion:(CLRegion *)region{
if (state == CLRegionStateInside) {
//Start Ranging
[manager startRangingBeaconsInRegion:region];
}
else{
//Stop Ranging
[manager stopRangingBeaconsInRegion:region];
}
}
I hope this helps.