Community Questions & Answers
Android locationServicesEnabled always returns true
Hi all, I'm building an app for someone, and one of the requirements is that if GPS is disabled (i.e. from the swipe down top bar) then it would give them the option to turn on their GPS. The problem i'm having is that I cannot get whether or not this is...
City & Zip Code Search
I am a Titanium beginner and I am currently working on an iPhone application that needs to allow the user to search for their location either by entering their zip code or city. I would like the application to accept a zip code or city in the search bar...
Location-reading iOS app that runs in background indefinitely
App type: mobile Ti SDK: 3.0.0 Platform: iOS 5.x, 6.x + various iPhones and iPads I'd like to ask a question about running in the background on iOS. This app is an enterprise app and need not pass certification by Apple (installed via email link). It...
iOS Bad GPS Accuracy with Geolocation.addEventListener
I'm testing Titanium 1.6 with iOS 4 on a 3GS phone. I'm using Ti.Geolocation.addEventListener('location') to get updates about a phone's location. Sometimes after the handler is attached, I'll get good GPS accuracy, but most times it won't improve to...
Location event in background service can remove?
Hi All, I have hit an issue with my app. I am tracking location in background service. Even if the application is brought to the foreground, I can not turn off the Location service. ...Location service icon in the status bar does not disappear! If stop...
How to determine whether the user is moving or not?
Hey all... I'm new to using location services and trying to find a solid example of how to determine motion. More importantly, I'd like to know if the user is moving or not. Ideally when the app is active and also when in the background. I've tried a few...
Calculate distance between current location and fixed location
Hi guys, I'm building a mobile application for iOS and Android which displays various locations across a city. I'm trying to solve a problem which involves calculating the distance between the current location of the phone and the location your viewing....
Android Application close when set address start location and address end location
My application close when i set my start location address and my end location adress and press on search button, here is my code ~~~ var win = Titanium.UI.createWindow ({ backgroundColor:'#000', title:'Window' }); var textStartLoca =...
Ho to set default location in Android Emulator
Hi, is there a way to set a default location in Android emulator and how ? Regards
Let the user write the address of destination for google maps in Android application
I working on project that let's identify the user location, his start location is his current position and his end location is the destination position. I want to let the user write his destination location (adress), how to do that? Thanks in advance
Possible to run trackSignificantLocationChange combined with interval tracking?
In the backgroundTask - i've registered in my iOS application - I track the user's position every 8 Minutes (because the 10 minutes limitation), but that solution hits the device battery very hard. Now I had the idea, to track the...
iOS killing location background service after about 10 mins?
Hi folks. We have hit an issue with our iOS app. There is a background service that runs when the app is closed to polls our web service at set intervals. However if the polling interval is more than 10 mins iOS kills off the background service. I have...
Best way to update Tableview Rows when GPS location change is fired
I have a GPS application that builds a tableview with distance label from the then current GPS location. I have a separate routine that kicks off an event viewer and updates the map as the user drives. I need to be able to update the tableview rows as...
Using info.split to exceed background IOS service more than 10 minuts
I am tracking location in my app but i cannot use the app in background more than 10 mints ! i hv changes the ti.app ~~~ <iphone> <orientations device="iphone"> ...
Geolocation with 3g
I wanna develop an app that track mobile and I use Geolocation and i works on emulator and also when i install the app on android mobile (WIFI) works good but the problem when i try to run the app using 3g instead of Wifi the app can't get the location,...
Background service stop running.
Hi All, Basically I am building application which report location to server every 5 mins as well as on distance changed by 300 meters. To send location on every 5 mins I am creating background service with interval of 5 minutes and it working perfectly...
How can I prevent that iOS kills my location-backgroundservice when it don't retrieve locationChanges for a while?
Hello community, I'm developer in a little team and we work on a location-based mobile app, in this version for iOS only. A few months ago I've tested the behavior from the backgroundServices in the TitaniumApp, that worked good. The actual version of the...
Webview won't get GPS location
I have a mobile app that loads a webpage inside a webview. The page (www.uwf.edu/maps/online) when viewed on a mobile device can ask your device for its gps location to put a pin on the map. When viewed through the webview in my application it does not...
Push notifications callback is it possible to have multiple callbacks or a centralised one?
Hi, For my users I ask for their permission for the push notifications after they have loggedin. In the callback I notify them that there is a new personal message by an alert. But this is only shown on the Tab where I have the...
Location of Titanium SQL database on Android
I can't find the location of the database file I create with: `bvxApp.bvxDB = Titanium.Database.open('bvxData');` I've tried: `bvxApp.temp_databaseToCopy = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'bvxData.db');` (And as...
iPhone app getcurrentlocation
Hi. Im building a app for both Android and iPhone, and need to get the current location of the device. In android it works fine, but iPhone dont return anything. Here is my code: ~~~ Titanium.Geolocation.purpose = 'Get Current Location'; ...
Add Circles on Android Mapview
Hi I am developing an app to mark a circle on android mapview. like this : http://i.stack.imgur.com/1F3kg.png I am searching for some kind of code or module to do this...
Returning longitude and latitude from address input?
Hi, Can you return longitude/latitude from a textField? I'm trying to allow the user to do radius based searches off our database, but need to pass long/lat to my php function to return the correct results. Thanks!
Using MapView in iOS without using current location
I am developing an iOS app with Titanium 2.1.4 SDK. I am displaying a couple of annotations on a MapView which is centered at a location sent by the server. I do not want to know user's location. But, when the window with MapView opens, iPhone shows a...
Call Webservice while running a BackgroundService from iOS-App
Hello there, I'm developing a titanium mobile application with the focus on iOS-platform for tracking a user's device in the background. I spent a much time to resolve the common "location background service"-problem, which have anybody in this...
Possible to send location data via network in background ?
Dear all, I am currently running the latest Ti Studio with 1.8.0.1 SDK for iOS App. I would like to build an App that tracks location data also as a background service when app is not active or even phone is locked. Knowing that the info.plist must...
GPS Location and CurrentPosition
Hi Everyone I know this has been discussed a million times but im going nuts at how to get this right. All my researchhas bought me to the following code. ~~~ function getNewPosition(){ Ti.Geolocation.distanceFilter = 10; ...
Geolocation: getCurrentPosition doesn't work with location event listener
Hi, This question was asked before a year ago, but I thought it was worth a new thread. Basically with an event listener for location, Ti.Geolocation.getCurrentPosition() stops working (for iPhone at any rate. Still works in simulator!) Here's the quick...
Region Monitor
Is there any way to implement iOS Region Monitor in titanium?
how to know if the location is the current location or the one last accessed?
I want to know for sure that the current location is the fresh one. How can I do this?
What to do for Geocoding now that Apple replaced Google Maps
Google's API calls for a requirement to use the Google Map with it. Titanium's Geocoder in the past has worked very poorly. Does anyway have any suggestions?
Tableview row with distance between current position.
Hi all, I have a tableview row with some shops, what i need to do for display the distance between the current position of the user with the shop in metre? ~~~ var row1 = Ti.UI.createTableViewRow({height:140, backgroundColor:'transparent',...
Track significant change in geolocation
I'm curious how far is significant in the geolocation (trackSignificantLocationChange)? I want to update some distances only if a user has travelled x miles. Matt
Longitude & Latitude get with Using Cellular network ?
Q) I wan to find my current position Longitude & Latitude with the use of cellular network ? Is it possible in appcelerator ?
Geocoding in a loop - need help with closures and callbacks
I am trying to geocode addresses in a database. I've run into this before and can't remember how to create the callback in such a way it gets the right data. Right now the callback routine runs, but always gets the last variable in the array. I think I...
how to show geolocation map view?
So, I was curious on how to get the geo location map view to show up. I realize i'm supposed to use user location to true, but where would that go? I am looking at the kitchen sink geo location and have been plaing with that. I attached the code from...
map for geo location
So I am playing with the geo location feature. I have been looking at kitchen sink and the geo location function in it. Is there a way to display a map and show where they are located on the map instead of in text form? Here is the code from kitchen sink...
Is there any third-party Location API coz some android rom has removed the google service packages.
I have been searching for weeks coz the Titanium built-in location api doesn't work on some android phone that removed the google service packages(include google maps and location api etc.).If there's no such thing available on Titanium framework then I...
Mapview: How to update region?
Hello, there is something i don't understand with mapView. The region is our current screen position no? I need to get my current screen location but when i add a button to get my mapview.region.latitute for exemple, it is always the same :/ . Maybe region...
Significant-Change Location Service
So my app was rejected by Apple for trying to use the background location setting (in info.plist). They recommended using the Significant-Change Location Service - is this available with Ti? As a side note - my app has had the background location setting...
Getting a users Current Location
Hey, I want to be able to have a view where it will show the users current location. I have tried using the Titanium.Geolocation.getCurrentPosition and I also tried Titanium.Geolocation.watchPosition - but they just bring up a blank, black screen which...
get current location not working on android phone
Hello all, I am trying to get the current location by the following code on android but this gives me alert" could not retrieve the location" working fine for iPhone. ~~~ Titanium.Geolocation.getCurrentPosition( function(e) { if...
not getting callback on clicking on current location in mapview
Hi, I created a mapView as follows, ~~~ var mapview = Titanium.Map.createView({ mapType: Titanium.Map.STANDARD_TYPE, region: {latitude:33.74511, longitude:-84.38993, latitudeDelta:0.01,...
HFL problem
So, I need to get the user's location and I'm using this code: ~~~ checkboxlocalizacaoatual.addEventListener('click', function(e) { if (checkboxlocalizacao.value == true) checkboxlocalizacaoatual.value = false; else { if...
Titanium Can't Find SDKs - Titanium or Android
I have Titanium Studio installed on a new Macbook Pro (running OSX Lion). All SDKs are exactly where they should be according to the docs. But no go. When I try to run a project, it says that the SDK can't be found. When I try to update the Titanium SDK...
Very slow location retrieval (as opposed to waze/igo/google maps)
Hello all. I'm using this code to get my location from the gps: ~~~ if (Titanium.Geolocation.locationServicesEnabled) { Titanium.Geolocation.purpose = "Click2Go"; Titanium.Geolocation.preferredProvider =...
Getting GPS position causes application to crash
I'm experiencing a weird issue when trying to get the users current location using GPS. After i run the application on an actual device - The first time the application runs fine and gives me the coords, but if i close the application and run it again it...
Location property ignored in Ti.Android.Calendar.createEvent
If you look at the example in the API docs, ~~~ // Create the event var eventBegins = new Date(2010, 11, 26, 12, 0, 0); var eventEnds = new Date(2010, 11, 26, 14, 0, 0); var details = { title: 'Do some stuff', description: "I'm going to do...
iOS Multitasking - Background location
Hi everyone, May I know if this is supported in this engine? I tried looking at the wiki but did not find any relevant information. Thanks in advance. Cheers
I got an error with magneticHeading on android
Hello, i'm working on a Augmented Reality module that let me find with the camera certain point in the world (obviously near to me). I have an issue about the magneticHeading in the heading event, when i get the magnetic heading, i suppose that if i point...