Understanding cases for UIBackgroundModes with CLLocationManager didEnterRegion
I need to make a HTTP API call when a user enters a certain area, then I'd like to display the response in either a local notification or a `UIAlertView` if the app is open. I'm having problems understanding the different scenarios that I need to account for.



I have my locationManager instance in a Singleton that acts as its delegate. From what I've been able to gather from my own testing and different articles I've read, there seems to be three different scenarios:

App is in foreground:
This works ok now. In this case, I display a `UIAlertView` with the result of my API call
//The other two, I haven't been able to get my API call's response.

App is in background:
Haven't seems to make the same calls as if it were in the foreground (the singleton's `didEnterRegion` method), except I don't get the response `UILocalNotification`

App is not running:
This seems to invoke the `didFinishLaunchingWithOptions` with the `UIApplicationLaunchOptionsLocationKey` launchOptions key prior to the `didEnterRegion` but same thing, I don't get my notification.

In my info.plist, I added 'gps' as a string to the `UIRequiredDeviceCapabilities` array and `UIBackgroundModes`
Understanding cases for UIBackgroundModes with CLLocationManager didEnterRegion
===

I need to make a HTTP API call when a user enters a certain area, then I'd like to display the response in either a local notification or a `UIAlertView` if the app is open. I'm having problems understanding the different scenarios that I need to account for.



I have my locationManager instance in a Singleton that acts as its delegate. From what I've been able to gather from my own testing and different articles I've read, there seems to be three different scenarios:

App is in foreground:
This works ok now. In this case, I display a `UIAlertView` with the result of my API call
//The other two, I haven't been able to get my API call's response.

App is in background:
Haven't seems to make the same calls as if it were in the foreground (the singleton's `didEnterRegion` method), except I don't get the response `UILocalNotification`

App is not running:
This seems to invoke the `didFinishLaunchingWithOptions` with the `UIApplicationLaunchOptionsLocationKey` launchOptions key prior to the `didEnterRegion` but same thing, I don't get my notification.

In my info.plist, I added 'gps' as a string to the `UIRequiredDeviceCapabilities` array and `UIBackgroundModes`