Location tracking on suspended app

I’m trying to track the location of the user on every 10-20 meters of the location change, I’ve managed to obtain the location updates while the application is in foreground or background using Backround modes. my issue is that I cannot get any updates after the application is terminated either by the user or by the system, I’ve tried using startMonitoringSignificantLocationChanges() but this does not fit my purpose since you get updates every 500m. Is it possible to achieve getting updates every 10 meters using “Region Monitoring”? Or is mobile device management (MDM) the only way to achieve this on an iOS device?

Answered by DTS Engineer in 788143022

Using the new CLBackgroundActivitySession API will relaunch your app after being terminated (as long as the app has been given the appropriate location authorization) You can read more at CLBackgroundActivitySession: https://developer.apple.com/documentation/corelocation/clbackgroundactivitysession

Along with an example project at Adopting live updates in Core Location: https://developer.apple.com/documentation/corelocation/adopting_live_updates_in_core_location

Accepted Answer

Using the new CLBackgroundActivitySession API will relaunch your app after being terminated (as long as the app has been given the appropriate location authorization) You can read more at CLBackgroundActivitySession: https://developer.apple.com/documentation/corelocation/clbackgroundactivitysession

Along with an example project at Adopting live updates in Core Location: https://developer.apple.com/documentation/corelocation/adopting_live_updates_in_core_location

Location tracking on suspended app
 
 
Q