ios - startUpdatingLocation +“用于位置更新的应用程序注册”停止工作

标签 ios

我有一个需要在后台连续更新GPS的应用程序。我已将其命名为startUpdatingLocation,并设置了“用于位置更新的应用程序注册”,并且得到了大约15分钟的修复,然后该应用程序停止获取更新。

我在这里想念什么?

最佳答案

您是否尝试设定:

myLocationManager.pausesLocationUpdatesAutomatically =否;

此属性的默认值为YES。
这对我有帮助,我遇到了同样的问题。

关于ios - startUpdatingLocation +“用于位置更新的应用程序注册”停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12656727/

相关文章:

android - 在像 Hive for Flutter 这样的 No-SQL DB 中处理数据库更改的最佳方法是什么?

ios - 使用 sprite 套件制作泡泡和气球

ios - Xcode 模拟器 - 导航栏丢失

iphone - 如何在没有UITableViewController的情况下结束UIRefreshControl

ios - Obj-c- if 语句被跳过?

ios - 从自动续订切换到可续订订阅

ios - ReactiveCocoa 4 : How to send error to an observer without interrupting the signal

ios - 在没有 NavigationBar 的情况下将数据从 AppDelegate 传递到 TableViewController

ios - Swift Realm Write方法是Sync或Async Thread

ios - cellForRowAtIndexPath 问题