I am trying to write an application in iOS for iPhone 4 using startMonitoringForRegion, which triggers a local notification every time a location delegate receives a location update.
While the phone is awake (the screen is on), the application works well, firing notifications, but when I remove the phone (the screen is black), I no longer receive notifications until I wake up the phone by pressing the "home" button
I am trying to add “Required Backgrounds” - “Application Registers for Location Updates” to info.plist, but that doesn't make sense ...
The CLLocationManager delegator is configured as AppDelegate.
What do I need to do so that location updates are logged even when the device is sleeping? Thanks in advance.
source
share