Receive signal from beacon while app is in the background
I have a iOS app that interact with a beacon. Also have a function to detect the signal from a beacon and if the signal is out of range I want to store something in the database (in this case core data) func updateDistance(distance: CLProximity) { UIView.animateWithDuration(1.0) { [unowned self] in switch distance { case .Unknown: self.view.backgroundColor = UIColor.grayColor() self.distanceReading.text = "No Beacon Signal Detected" updateDatabaseWithLocation() } } } So the app works fine as long as the app is running in foreground. My understanding is I can also have the app in the background