I have a CLLocation manager. It works fine.
locManager = CLLocationManager()
locManager.delegate = self
locManager.desiredAccuracy = kCLLocationAccuracyBest
locManager.requestWhenInUseAuthorization()
locManager.startUpdatingLocation()
And of course, I have the delegate methods:
func locationManager(manager: CLLocationManager, didFailWithError error: NSError) {
println("didfail")
println(error)
}
func locationManager(manager:CLLocationManager, didUpdateLocations locations:[AnyObject]) {
println("location manager called..")
let locationLast = locations.last as! CLLocation
latitude = locationLast.coordinate.latitude.description
longitude = locationLast.coordinate.longitude.description
locManager.stopUpdatingLocation()
//....
}
There is no any problem it's working! But, when i'm here 47.5775679 19.0488392 (or at in 1-2km radius of this point ) it's throws this error:
Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)"
I was tried with simulator and real devices too. I have internet connection on the real devices when i was trying. Is there a black hole? :) or i don't know.
Could anybody please give me any idea about, what cause this phenomenon?
Thank you!