应用程序未运行时跟踪地理位置 (Swift)

And*_*ndo 2 tracking geolocation background-application swift

当应用程序位于前台和后台时,我可以跟踪地理位置(所有关于位置精度和节省电池寿命的讨论)。

但是,我还需要在应用程序未运行时(未打开且不在后台,被杀死)跟踪用户,当然需要用户许可。

有可能做到吗?

我需要类似“查找朋友”的应用程序。允许吗?

谢谢

Rag*_*890 5

即使应用程序被终止,您也可以跟踪位置。

startMonitoringSignificantLocationChanges
Run Code Online (Sandbox Code Playgroud)

用于监控位置。如需演示,请参阅下面的链接

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