Continious location updates even if app is termina

2019-09-04 07:13发布

问题:

can anybody help me with getting device location even when the app is terminated. I know how to get location when app is in background. But I am still not able to get it when app is closed/terminated by user.

Thanks, Nilesh

回答1:

Kindly refer http://mobileoop.com/getting-location-updates-for-ios-7-and-8-when-the-app-is-killedterminatedsuspended I have not tested the same. But you can give a try.



回答2:

kindly refer to these pages. it can be done using

[[LocationController sharedInstance] startMonitoringSignificantLocationChanges];

1) recieving location updates after app is terminated

2.) iOS update location even when app is terminated

3.) http://mobileoop.com/getting-location-updates-for-ios-7-and-8-when-the-app-is-killedterminatedsuspended



回答3:

Once application got terminated from background, There is no way to retrieve the location continuously.