1

I want to simulate location in watchOS simulator. But the location manager doesn't fire confirmation alert about using location inside the application.

CLLocationManager requestWhenInUseAuthorization doesn't fire confirm alert for WatchOS That is , [locationManager requestWhenInUseAuthorization]; do nothing. in info.plist file there is NSLocationWhenInUseUsageDescription which is The app needs your location.

Why this feature doesn't work? May be I miss something?

Vyacheslav
  • 26,359
  • 19
  • 112
  • 194
  • you already run `[locationManager startUpdatingLocation]` – Phu Duy Aug 19 '16 at 02:33
  • yes, i did it. i'm catching the error iinside `didFailWithError` – Vyacheslav Aug 19 '16 at 02:42
  • Check this answer - http://stackoverflow.com/questions/38991985/how-to-get-users-current-location-from-network-provider-in-objective-c/38995060#38995060 – user3182143 Aug 19 '16 at 04:42
  • @user3182143 , I'm using this code http://stackoverflow.com/questions/39021583/location-detection-in-watchos-simulator-has-been-failed – Vyacheslav Aug 19 '16 at 06:47
  • @user3182143 , I did the same steps for base application which works correctly. the problem is about watchOS. Nevertheless, thanks. – Vyacheslav Aug 19 '16 at 06:48
  • Hi @Vyacheslav, did you ever resolve this? I am facing the same issue on watchOS, hoping you have got a resolution, thanks! – Bocaxica Oct 20 '21 at 16:37

0 Answers0