iOS 11 startMonitoringSignificantLocationChanges working fine in background but not working if killed the app

In iOS 11 startMonitoringSignificantLocationChanges working fine in background but not working if killed the app.

But in iOS 10 its working in both background and killed state.

Please help on this.


I am using NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription both key i added in plist. Always authorization i am getting. Even in background its working fine. but if kill the app, location update is not working.


What i have to do fix this issue? Please help on this.

Last one week i am searching for this.

Hi!

It seems I have the issue.

My setup of location manager:


    manager.pausesLocationUpdatesAutomatically = NO;
    manager.activityType = CLActivityTypeOther;
    switch (status) {
        case kCLAuthorizationStatusAuthorizedAlways: {
            manager.allowsBackgroundLocationUpdates = YES;
            break;
        }
        default: break;
    }
    manager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters;



And even in this aggressive setup it does not work well. App stops for a 20 minutes, which is not an appropriate behavior.


Look at Core Bluetooth thread, it seems that background is broken.

https://forums.developer.apple.com/thread/90752

In Xcode, project targets in Capabilities add Location update inbackground modes.

@brknandhakumar I am also facing the same issue. Have you found any solution?

iOS 11 startMonitoringSignificantLocationChanges working fine in background but not working if killed the app
 
 
Q