iOS LocationManager is not updating location (Titanium Appcelerator module)
Posted
by
vale4674
on Stack Overflow
See other posts from Stack Overflow
or by vale4674
Published on 2012-03-10T18:17:02Z
Indexed on
2012/06/27
15:16 UTC
Read the original article
Hit count: 303
I've made Appcelerator Titanium Module for fetching device's rotaion and location. Source can be found on GitHub.
The problem is that it fetches only one cached location but device motion data is OK and it is refreshing.
I don't use delegate, I pull that data in my Titanium Javascript Code. If I set "City Run" in Simulator -> Debug -> Location nothing happens. The same cached location is returning.
Pulling of location is OK because I tried with native app wich does this:
textView.text = [NSString stringWithFormat:@"%f %f\n%@",
locationManager.location.coordinate.longitude,
locationManager.location.coordinate.latitude,
textView.text];
And it is working in simulator and on device.
But the same code as you can see on GitHub is not working as Titanium module.
Any ideas?
EDIT:
I am looking at GeolocationModule src and I see nothing special there.
As I said, my code in my module has to work since it is working in native app. "Only" problem is that it is not updating location and it always returns me that cached location.
© Stack Overflow or respective owner