On a few Android devices, using several versions of mobile SDK, I am getting the error: "location is currently unavailable".
I am used to seeing this in the emulator, but what is it doing on the device? I have GPS turned on. This happens to my app & the kitchen sink.
After some experimenting, I commented out the following line of code and it works.
//Titanium.Geolocation.preferredProvider = Titanium.Geolocation.PROVIDER_GPS;
I'm guessing since I am inside a building and the GPS satellites aren't really available it is failing….and not reverting back to the network provider. I would think the property with a name like "Preferred Provider" would be just that a "Preferred" and not "Required" provider. Let me know if anyone has anything to add.