I want to track/get user location on each 1 min interval, even when app is killed by the user. I have tried below code but not able to get location on each 1 minute interval.
locationManager.delegate = self
locationManager.desiredAccuracy = kCLLocationAccuracyBest
locationManager.activityType = .other;
locationManager.distanceFilter = kCLDistanceFilterNone;
locationManager.startMonitoringSignificantLocationChanges()
locationManager.allowsBackgroundLocationUpdates = true
locationManager.pausesLocationUpdatesAutomatically = false
I referred below apple documentation as well,
Significant-Change location service: In this case, iOS system will wake up your app only when user's location is significantly changed. The value is around 500 meters. https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_significant-change_location_service
locationManager.delegate = self
locationManager.desiredAccuracy = kCLLocationAccuracyBest
locationManager.activityType = .other;
locationManager.distanceFilter = kCLDistanceFilterNone;
locationManager.startMonitoringSignificantLocationChanges()
locationManager.allowsBackgroundLocationUpdates = true
locationManager.pausesLocationUpdatesAutomatically = false
I referred below apple documentation as well,
Significant-Change location service: In this case, iOS system will wake up your app only when user's location is significantly changed. The value is around 500 meters. https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_significant-change_location_service