开发者

iOS app freezes when changing CLLocationManager accuracy, returning from background state

开发者 https://www.devze.com 2023-03-16 07:12 出处:网络
I\'m using CLLocationManager instance, even while running in background. To save de开发者_运维技巧vice power, I interchange between kCLLocationAccuracyThreeKilometers and kCLLocationAccuracyBest

I'm using CLLocationManager instance, even while running in background.

To save de开发者_运维技巧vice power, I interchange between kCLLocationAccuracyThreeKilometers and kCLLocationAccuracyBest

When I restore app from running background, CLLocationManager instance activates kCLLocationAccuracyBest, if it's not using this accuracy.

However, there seems to be some kind of freezing for about 2~3 seconds, not responding to user interaction.

If I'm not wrong in analysis, changing the accuracy of CLLocationManager instance seems to be the main cause.

Can anyone explain what limitations I should be aware of, when changing CLLocationManager accuracies?

And, also do anyone have some kind of solution to this issue?

0

精彩评论

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