iphone - 应用在后台运行时访问和保存位置信息 - iOS

标签 iphone ios gps location

所以我的问题是,在后台运行的应用程序是否可以访问设备的位置信息并将其保存在堆中或将数据发送到服务器?
我知道它必须与委托(delegate)做一些事情,但我不确定当应用程序在后台时可以完成这种复杂的过程

最佳答案

是的你可以!

在苹果的 Location Awareness Guide 中描述了需要在后台接收 GPS 的应用程序必须设置一个特定的值:

设置 key locationUIBackgroundModes您的 Info.plist 的数组文件。

关于iphone - 应用在后台运行时访问和保存位置信息 - iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15438392/

相关文章:

iphone - InitWithName 在 ViewDidLoad 之前执行可能吗?

iphone - 启用 UIFileSharing 的 iOS 文档

ios - 尝试在 ChartDataEntry 中输入日期/字符串

ios - @synthesize 语法,带和不带等号

ios - react native : Pass target Location onPress to google maps or ios maps and execute a GPS Navigation towards said target

android - 在 Galaxy Tab 中获取当前位置

iphone - UIInterfaceOrientation subview 中的旋转不起作用

objective-c - 关于 iPhone SDK,您希望早点知道什么?

objective-c - MKMapKit regionDidChangeAnimated 在点击自定义标注后停止

c++ - GPS应用程序编译错误