Hi, I have this code that just to work fine to get location updates, then from a time being, the code is not working, the Locations Updated method is never called. Status property has a value of "Not Determined" even after I went to Settings/Privacy and enabled the location service for my app.
Hi, I am successfully using the CLLocation Manager (and associated objects) to interact with the GPS.
- (void)location Manager:(CLLocation Manager *)manager did Update Heading:(CLHeading *)heading // This delegate method is invoked when the location managed encounters an error condition.
- (void)location Manager:(CLLocation Manager *)manager did Fail With Error:(NSError *)error @end //ruby wrappers void locationmanager_init(void) void locationmanager_get_heading(double *x, double *y, double *z, double *th) I'm running the code on an iphone 4 with i OS 5.1, in the console I can see the debug messages of init, but I never see a debug message of the did Update Heading delegate. UPDATE I think I need to run my code in a background thread to get it working.
Currently the locationmanager_init initializes leaves the code, therefor its not active and the events are not fired.