【发布时间】:2018-01-22 13:39:57
【问题描述】:
我们用过
significantLocationChange(https://developer.apple.com/documentation/corelocation/getting_the_user_s_location/using_the_significant_change_location_service)
用于更新位置,但它有时会更新位置,所以它 没有始终如一地提供位置更新。
当应用程序运行时,经常更新位置的最佳方式是什么? 在终止阶段(不在前台/不在后台)
【问题讨论】:
-
这是一个老问题,我建议你研究一下后台任务应用程序被杀死。你会找到方法的。我已经为此实施了一个解决方案,但由于合规性而无法发布我的代码。
标签: ios core-location cllocationmanager