var gLocationManagerWM: CLLocationManager = CLLocationManager()
var gStartLocationWM: CLLocation!
var gSpeedWM: CLLocationSpeed = CLLocationSpeed()
self.gLocationManagerWM.delegate = self
self.gLocationManagerWM.distanceFilter = self.gMyDistanceFilterWM
self.gLocationManagerWM.activityType = .fitness
self.gLocationManagerWM.desiredAccuracy = kCLLocationAccuracyBest
The significant location change API should resume (or relaunch) your app in the background when there has been a significant location change. I don’t have a lot of experience with this myself but I’m pretty sure it works because lots of developers are using it.
How are you testing this?
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"