sergeygarazha / MapKit-Demo

Map View Demo
6 stars 3 forks source link

Error Locating User #1

Closed antonio-gomez closed 10 years ago

antonio-gomez commented 10 years ago

Hello Mate, I found your repo trying to figure out what I'm doing wrong on swift when prompting a user location, have you solve the error that gets when loading the app?:

Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization] first.

Cheers,

sergeygarazha commented 10 years ago

Hello! I've not found solution for that problem. I think it's a bug in current version of iOS. Request for accessing to user location still mostly not working for me.

antonio-gomez commented 10 years ago

I went and developed a new example mate, the problem was around the plist file and a couple of keys that need to be added in order to request the user authorization, you can check it here: https://github.com/fractma/LocateMeSwift

sergeygarazha commented 10 years ago

Thanks, Antonio! Your solution definitely solve that problem.