Facing serious problem.
Implementing CLLocationMangerDelegate and using this code:
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
but method
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error{
NSLog(@"%@",[error description]);
}
When it fires I get:
Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)"
I am testing this on a iTouch device with OS 4.1 with WIFI. Which also gives the same error in the console as mentioned above.
Has anyone faced this scenario or can anyone can help me out wiht this problem. Is there a way to detect CLLocationManager is functional on the device or not.
I have found some similar discussions on this link, but no solutions yet!
Got some hint from Location Manager Error : (KCLErrorDomain error 0)
Cold be the WiFi or internet problem on the iTouch. I cannot understand why it is not working on the simulator as it would work with iPhone simulator 3.1.3, at least by default it would show Infinite Loop,CA (Apple head office address). Could it be that this default address is completely removed?
Anyone used developers support to ask apple about this issue or a document with the complete CL framework for simulator and other devices?
Thanks in advance.