Вопрос

I have a service class that is CLLocationManager's delegate. If I run the app, then open the Settings App and switch on Airplane Mode, my delegate gets nothing from CLLocationManager.

I would expect locationManager:didFailWithError to be called, but it is not.

Это было полезно?

Решение

Well it appears that it is possible to switch on Wi-fi while in Airplane Mode. Wi-fi is initially switched off when airplane mode is switched on, but you can switch it back on from the Settings App. This means that LocationServices are not necessarily disabled as they can still work using Wifi networks for positioning.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top