my app update (1.1) was rejected because of this reason:
We found that your app uses a background mode but does not include functionality that requires that mode to run persistently
.
But my app still uses the same functionality in version 1.0.
What i do: On location update i check if the new location is inside a specific region (rectangle):
- (BOOL)locationInRegion: (CLLocation *) lastLocation {
if ((lastLocation.coordinate.latitude < self.overlayTopLeftCoordinate.latitude && lastLocation.coordinate.latitude > self.overlayBottomLeftCoordinate.latitude) &&
(lastLocation.coordinate.longitude < self.overlayTopRightCoordinate.longitude && lastLocation.coordinate.longitude > self.overlayTopLeftCoordinate.longitude)) {
return YES;
}
return NO;
}
In Foreground and in background mode if the user is in this region i draw a crumb path on a MKMapView. If not, i do nothing.
Require background modes -> app registers for location updates is in my .plist
What i am doing wrong?
I do not have this information in my description:
Continued use of GPS running in the background can dramatically decrease battery life.
Can this be the (only) reason?