Community Questions & Answers

Geolocation not refreshing

SDK: 3.0.2 IOS: 6.1 I have a list that fetches locations from the server. Here's the flow: 1. Get Position (see function) 2. make call to the server with those coordinates (that the location callBack) 3. update list Now this works perfectly fine, until I...

Android: Getting GPS location on device

Hello. I can't get GPS location on Android (3.1) device that I use, a KitchenSink example does not work also. Here is error message: {"message":"location is currently unavailable.","code":2} I enabled GPS in...

about locationServicesEnabled

On Android OS 2.2 and above, there is a new, "passive" location provider that is enabled at all times, even when the user disables both the GPS and Network location providers. Therefore, this method always returns true on these devices. then...

geolocation track at all times

Hi guys, After lurking the wiki, google and Q&A for this topic, i cant figure out whats true. I need to develop an app for iOS 5 and 6, that registers the user´s location each 10 min, even if the app is in background. No matter the device´s battery...

GPS reverse geocoding current location

Hi. I have an app where i want to get current location and put it in a DB with reverse geocoding. It seems that the GPS function wont "bite" or something or maybe i remove the eventlistner to fast so it dont have time to get the position. I...

"Nearby places" functionality

In the ACS API documentation related to Places, I don't see "nearby places" request processing functionality based on current location GPS coordinates. For example, the database includes retail stores with GPS coordinates and I'm standing in...

Determ in code - if running in simulator?

Hi, Is it possible to "determ" if the device is running in a simulator or in a real phone by code? When coding for geolocation, it would have been nice to manually code my long and latitude positions..... Joakim

Check to see if GPS is enabled

Hi, I'd like to check the device if it has it's GPS enabled, and if not a redirect to the settings to enable the GPS. The app can not continue without GPS. Can this be done in Titanium? I'm using Titanium SDK 3.0.0, developing for android 2.2+ and iOS.

Webview GPS

How do I get webview to ask for permission to use my GPS? I want my local HTML file to activate my phones gps and locate me. But I can't seem to find out how. I think I need an event in my HTML file but im not sure Im running Titanium 3 and I am...

how to open settings in iOS ?

can I open the settings to show the Location Serveices is on or off? [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]]; this can work in Xcode, in TitaniumStudio, How to do it?

Get every gps update

Hi guys, Is it possible to make a function which gets every gps update and not one based on distance. I have tried using GetCurrentLocation with a 1 second timer. But that turns off the gps after every try and it doesnt get very good signal. Any ideas?

DistanceFilter Questions

Hi, In my app I'm noticing the location change happening more often than I was expecting. I have `Titanium.Geolocation.distanceFilter = 200;` in my code. A few questions: 1. Does distanceFilter work on Android? 2. What is the unit of measure for...

Android distance with GPS

Hi. I have this code for calculating daistance between 2 points with google distance matrix drive mode. It works great on iOS but i cant get it to work with Android. I just get "Distance 1m Km" ~~~ var velo = {}; velo.getLastWeek =...

Showing 1-50 of 216 1 2 3 4 5