How do you start an app using location update ?
Thanks !
Massimo Senatore
Italy
How do you start an app using location update ?
Thanks !
Massimo Senatore
Italy
What sort of location tracking are you using?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
---
var gLocationManagerWM: CLLocationManager = CLLocationManager()
var gStartLocationWM: CLLocation!
var gSpeedWM: CLLocationSpeed = CLLocationSpeed()
var gMyDistanceFilterWM:Double=10
---
self.gLocationManagerWM.delegate = self
self.gLocationManagerWM.requestAlwaysAuthorization()
self.gLocationManagerWM.startUpdatingLocation()
self.gLocationManagerWM.distanceFilter = self.gMyDistanceFilterWM
self.gLocationManagerWM.activityType = .fitness
self.gLocationManagerWM.allowsBackgroundLocationUpdates=true
self.gLocationManagerWM.startMonitoringSignificantLocationChanges()
self.gLocationManagerWM.desiredAccuracy = kCLLocationAccuracyBest
thank you
Massimo Senatore
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"