Does the internal GPS antenas stop working immediately after calling CLLocationManager stopUpdatingLocation

╄→尐↘猪︶ㄣ 提交于 2019-12-31 07:25:12

问题


Here is my scenario. In my app there is no need of continuously monitoring user location, but I need the location to be as accurate as possible. So I just call CLLocationManager startUpdatingLocation with kCLLocationAccuracyBestForNavigation set as desiredAccuracy, and after I get the location with my desired accuracy (by comparing newLocation.horizontalAccuracy with predefined value) I want to stop the location update and revoke update again after several seconds. But when I call stopUpdatingLocation the location icon from status bar disappears after about 10 seconds, does this mean that apple has considered this scenario, when user calls stopUpdatingLocation it doesn't shut down antenas for some period of time, may be because turning them back on is somewhat expensive in terms of energy, so they just wait some time and only after that shut down antenas. Or may be simply the location icon is not disappeared but the antenas are turned off. So can someone explain what happens exactly when someone calls stopUpdatingLocation?


回答1:


The GPS radios power down 10 seconds after last use. That was discussed in one of the performance optimization sessions at WWDC.



来源:https://stackoverflow.com/questions/15875274/does-the-internal-gps-antenas-stop-working-immediately-after-calling-cllocationm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!