开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜