I\'m trying to get my app working in Xcode 7 beta but I\'m hitting this exception:
NSInternalInconsistencyException: \'Invalid parameter not satisfying: !sta
I faced same issue on Hybrid app.
I have enabled background mode ON.
Apple has rejected my app. Saying there is no features for background mode.
So I made following changes on "BackgroundGeolocationDelegate.m"
1.locationManager.allowsBackgroundLocationUpdates = NO;
if (authStatus == kCLAuthorizationStatusNotDetermined) {
if ([locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) { //iOS 8.0+
NSLog(@"BackgroundGeolocationDelegate requestAlwaysAuthorization");
[locationManager requestWhenInUseAuthorization];
}
}
There was no more crash. Note *: Fix is only for hybrid app