Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/120.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 为什么SLC更新总是5分钟?_Ios_Location_Ios Simulator_Cllocationmanager - Fatal编程技术网

Ios 为什么SLC更新总是5分钟?

Ios 为什么SLC更新总是5分钟?,ios,location,ios-simulator,cllocationmanager,Ios,Location,Ios Simulator,Cllocationmanager,在模拟器和设备上,我的LocationManager代表在监控SLC的同时,每5分钟准确地获取一次didUpdateToLocation:fromLocation:。为什么会这样?根据: 对于不需要常规位置事件流的应用程序, 考虑使用StistMealOrgIngimeListCurror更改方法 开始传递事件。这种方法更合适 对于大多数只需要初始用户的应用程序 仅当用户移动重要位置时,位置修复和更新才需要 距离。此接口仅在检测到新事件时才传递新事件 更改设备的相关基站,从而减少 频繁更新和显著

在模拟器和设备上,我的LocationManager代表在监控SLC的同时,每5分钟准确地获取一次didUpdateToLocation:fromLocation:。为什么会这样?

根据:

对于不需要常规位置事件流的应用程序, 考虑使用StistMealOrgIngimeListCurror更改方法 开始传递事件。这种方法更合适 对于大多数只需要初始用户的应用程序 仅当用户移动重要位置时,位置修复和更新才需要 距离。此接口仅在检测到新事件时才传递新事件 更改设备的相关基站,从而减少 频繁更新和显著降低功耗

我的猜测是,当你的应用程序在后台运行时,iOS只会每5分钟“唤醒”一次应用程序,以检查你是否进行了重大的位置更改,以节省电池寿命

在中可能也有一些对您有用的信息