Continious location updates even if app is terminated in iOS

牧云@^-^@ 提交于 2019-12-25 01:23:19

问题


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.



来源:https://stackoverflow.com/questions/30522617/continious-location-updates-even-if-app-is-terminated-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!