2

I want my application get user`s location. i did everything from right answer from How to get Location user whith CLLocationManager in swift? but CLAuthorizationStatus always is CLAuthorizationStatus.NotDetermined What is the problem?

Community
  • 1
  • 1
Farhad
  • 742
  • 6
  • 22
  • did you ever solved it? – longi Oct 29 '14 at 13:18
  • Yes. first add this two line in plist file 1) NSLocationWhenInUseUsageDescription 2) NSLocationAlwaysUsageDescription - From link in my question – Farhad Oct 30 '14 at 07:04
  • Solved it myself... I added the two keys in the `plist` for my test-cases instead of my application's `plist` – longi Oct 30 '14 at 08:26

1 Answers1

0

be careful that

NSLocationAlwaysUsageDescription

and

NSLocationWhenInUseUsageDescription

keys are mandatory, so you should include that in your plist.

Saeed-rz
  • 1,435
  • 1
  • 20
  • 38