开发者

Do I need to restart startMonitoringSignificantLocationChanges after every new location update?

开发者 https://www.devze.com 2023-02-06 02:50 出处:网络
I start startMonitoringSignificantLocationChanges when my app goes into the background, I make sure that when didUpdateToLocation is triggered, it will check for cached location and invalid accuracy r

I start startMonitoringSignificantLocationChanges when my app goes into the background, I make sure that when didUpdateToLocation is triggered, it will check for cached location and invalid accuracy readings and then return from the method. But if I do get a good location update, do I need to restart startMonitoringSignificantLocationChanges by adding:

[manager stopMonitoringSignificantLocationChanges];
[manager startMonitoringSignificantLocationChanges];

At the end? I want the app to keep monitoring for significant changes when it is开发者_如何转开发 in the background.


No. It'll will keep updating until you call stopMonitoringSignificantLocationChanges.

0

精彩评论

暂无评论...
验证码 换一张
取 消