deferredLocationUpdatesAvailable returns NO in iOS 10

走远了吗. 提交于 2019-11-27 14:09:25

I have already filed a Radar (28303779) with proof of concept sample code - also contains the wording from the radar. I have also opened a dev forum post and it appears a lot of engineers are facing the same problem. deferredLocationUpdatesAvailable() is also returning false in iOS 10. Seems like apple has intentionally turned off the functionality.

Update

My Bug Report got closed saying 'it works as intended'. I suppose Apple does not intend to fix it and it was mistakenly taken out without deprecation first.

I looks like this is a bug in iOS 10

We should all file radars to get it fixed, please dupe mine: openradar.appspot.com/radar?id=4927958787555328

It seems like it is a "bug". (reproduced on iOS11 and iOS12, iPhone 7, iPad mini 4 cellular)

CLLocationManager.deferredLocationUpdatesAvailable() always returns false, so code for deferred updates never run. However, when app is in the background and Location manager delivers positions via locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]), those positions are delayed as if deferred mode was enabled.

I am thinking that deferred API is there just for compatibility reasons with old apps, and new apps don't need to worry about it at all.

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