Our app uses CLLocationManager startMonitoringForRegion
and didEnterRegion
in order to alert the user when they enter in a particular region. We want this to work both in the foreground and in the background and hence added:
<key>UIBackgroundModes</key>
<string>location</string>
To our plist file.
However, the app was just rejected with the following reason:
2.16 - Multitasking Apps may only use background services for their intended purposes: VoIP, audio playback, location, task completion, local notifications, etc.
Is UIBackgroundModes location
not required if we simply want region monitoring in the background?
Also, is it actually strictly forbidden to include UIBackgroundModes location
in the plist if we are only using didEnterRegion
?
EDIT: according to UIBackgroundModes location and significant location changes with region monitoring UIBackgroundModes location
isn't required when only using didEnterRegion
. We'll take out the key, but wow, if that's the reason, what an absolutely crappy way to get rejected -- we wanted background location monitoring so we put what we thought was the permissions for background location monitoring!