Community Questions & Answers
how can I make a function only inside a 'square' in mapView?
I'm trying to make a check in on facebook only if the user are inside the right place... but how can I do that? I have tried to make this square passing the lat and long of google maps but it don't work... Maybe is something that I'm doing...
Problem with Geolocalization on Android Emulator
Hi, I have a problem with Titanium 3.1 Geolocalization module in Android Emulator. I follow step by step https://wiki.appcelerator.org/display/guides/Tracking+Position+and+Heading guide and the message is "location is currently inavailble"....
map current geo location gives error in android ?
i am using geolocation for getting current position of the user . in IOS it works fine , but in android it show an error like cannot read property 'longitude' of undefined. i search in google and in this Q/A community but not get perfect answer. error is...
Different Language in Reverse-Geocoding
Hi, is there any way to change the language of the result of a reverse-geocoding action? For example I need the german localized version of city names. It is no big deal if it does not work but maybe I am missing a functionality inside the SDK.
One shot getCurrentLocation cannot get a new location when mobile data is turned off
hi, i'm creating simple application to get current device's location when a button pressed. here's my code : ~~~ var win = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff', layout:'vertical' }); var btnGetLocation =...
iPhone Geolocation never turns off
This has worked in previous builds with earlier SDKs, but now, after listening for geolocation events, when I use `removeEventListener`, the location arrow never goes away. The method returns void, so I have no way of knowing if that failed for some...
Geolocation forwardGeocoder URL is broken
Currently only the URL specified in KitchenSink will geocode successfully. I've dug into the Titanium source code and it looks like the fault is with an Appcelerator server script found at http://api.appcelerator.net/p/v1/geo. I believe the script only...
Geolocation - Check if user is in circle
I'm working on a Titanium Project and need to check on a map if the current location is in the circle / radius of an annotation. When this state is true my app has to fire an event. I'm looking for a solution something similar to this:...
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...
Maintaining EXIF Data on Images
In my (iPhone) app, users can snap a photo (or grab one from their library). After adding a caption, I send it to the server through XHR. On the other end, the image is received (for either function: camera or photo gallery) but there is no EXIF...
photo location in Places
hi, I have been experimenting with titanium Cloud services which are great. However I have one problem that I'm not able to resolve. Photos uploaded to cloud are nicely linked to the user who uploaded them but they have no link to Place nor any GPS...
URGENT: Location permission dismiss quickly before the user can accept or decline.
Hello, my app asks for location permissions to the user and it was working perfectly before doing some updates to the SDK and I'm just guessing that this is the issue because I didn't change the code that used to work. Now if the user installs for the...
Geoloqi - Android - Crash.
Geoloqi Released the Source Code for their titanium module today. (Thank so Much to the Geoloqi Team). I will be the first to admit I am still a titanium newbie....so I am trying to figure out why the android system crashes with a Signal 11. Any Help from...
"My App" would like to use your location dialog is hidden before user can interact with it
For some reason, when my iPhone application is first downloaded and the 'App would like to use your location' dialog appears, it is instantly hidden again. This means the user never has the opportunity to accept the GPS function and the app doesn't...
draw route between point A and B in Titanium Android Project
Hi; Here is my code: ~~~ Ti.UI.setBackgroundColor('#000'); var tab1; function decodeLine(encoded) { var len = encoded.length; var index = 0; var array = []; var lat = 0; var lng = 0; while (index < len) { var b; ...
forwardGeoCoder not working for iPhone
Hello everybody.. I have been facing this issue for quite some time now. I am working on forward geoCoder to get the co-ordinates of addresses typed by users via text Fields. but the function seems not to be working giving undefined values. being unable to...
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...
Google Maps API key
Hi, Do we need to worry about the Google Maps API key anymore? We're using version 3.0.0 of the Titanium sdk. Thanks.
purpose geolocalization
The code ~~~ Titanium.Geolocation.purpose='GPS Activate'; ~~~ or ~~~ Ti.Geolocation.purpose='GPS Activate'; ~~~ not shown the dialog box to allow the use the GPS on the iphone or on the simulator. PD:The GPS service is...
it's possible to use Google Maps in Ipad ios 6?
Hi, I'm developing an app with geolocalization but the customer want Google Maps instead of Open Street Maps this change is possible? There is some kind of solution for use Google Maps en iOS 6?
How to link to Platform Location Settings
Hey everyone, I'm looking for a way to link a "Settings" button to Location Services on Android (an iPhone if possible, but it appears it asks for permission with GPS so should turn on if allowed right?). So I think this question is just for...
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...
Ti.Geolocation.getCurrentPosition() doesn't work suddenly
os: mac os platform: android4.0 sdk: 3.0.0GA following is my code, it was always working by the end of yesterday. but it 'suddenly' doesn't work today, i see the errors called "location is currently unavailable" with error code "6", do...
Can't close window inside Geolocation getPosition error
Platform: Android 4.2.2 SDK: 3.1.0 RC Alloy project I'm opening a new window with ~~~ $.btn_add.addEventListener("click", function(e) { var report = Alloy.createController('report'); report.getView().open(); }); ~~~ inside my...
Defining a custom sqlite function
Is there a way to define a custom sqlite function in Appcelerator? I am trying to do a distance calculation using latitude and longitude points in a sqlite database but the normal formula I would use relies on SQL Math Functions that sqlite does not have...
App stops and closes after a few hours
I've confirmed this on Android 2.3.6 and 4.1.2 .. Can't say i did on iOS(Haven't had an extended test on it yet). But here's the deal: I've got an app which sends it's current coordinates to a php service which saves it to a mysql database and sends a...
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...
Error after clean a project
Hey guys I am using ubuntu 12.10 OS & titanium 3.0.2 Whenever I clean (x) project it gives me this error. After that when I run some other say (y) project & then compile this this (x) project it runs successfully. I don't understand the reason...
Geoloqi module
Does anyone know what happened to the geoloqi module as i can't find it on the marketplace! otherwise is there any service for location bassed push notifications?
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....
Looking for a developer
I need to do an app for both iPhone and Android, and firstly, I want to make sure titanium is suitable to do the job. The app will have functionality that will generate routes on google maps etc, I need to know if this is possible? Also, wondering if...
Valid parameters for Ti.Geolocation.Android
We are developing a pedestrian GPS application in which the GPS updates should be fairly frequent and reliable. I can't seem to get the GeoLocation.Android calls to work as documented. If I include a location rule, my app gets an update infrequently -...
Reason for rejecting iPhone app by Apple - Any thoughts??
I am building an iPhone app using Titanium 3.0.2 GA platform. The app uses GPS coordinates (lat/long) continuously ( in the background) and sends notifications to users if a product is available in their app's wish list. I am capturing the GPS coords...
Location based Push Notifications - can it be done through Titanium?
After reading several articles the last few days, It looks like we cannot send push notifications to users based on lat/long in the background (when app is not running) using Titanium. The other options that I have is to use third party APIs like GeoLoqi...
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...
Curent Postition (lan, lon)
Hi all, I use the below code in the app.js because i have some table view rows with distance filtre. The problem is that not refresh the position after re open the app from pause. ~~~ function getCurrentLocation() { Ti.Geolocation.preferredProvider =...
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 =...
Possible to trigger application based on geolocation listener?
I am from a pure web development background, so I am trying to determine if the following functionality is at all possible to implement with Titanium: I would like to be able to alert a user (have phone ring) when he/she reaches a certain location...
Local or Push Notifications when I find a product in a specific location
Hi all, Hope all is well. I have a question on the notifications that I am struggling to find out using titanium. My requirement is I am building an a simple mobile app for iPhone 4/4S/5 which lists products in an area within a specific zip code or...
geolocation
Hi, Does geolocation work without network or internet ? thanks
Changes for Apple Maps in iOS6?
Just getting started with Titanium. I have a small iOS/Android application that is using Google Maps for displaying stuff on the map for a few customers. Now it looks like Google Maps will be banned from iOS 6. So I have to make an invest in upgrading to...
Strange behaviour in forward geocoding in iOS
I want to resolve a string address to a location. The app is deployed to Android and iOS. In Android, the forward geocoding works well, but in iOS, it doesn't. First I tried in the iPhone simulator, whose geolocation is set in USA. Searching for any...
Geolocation showing old/outdated data
Hello, I'm trying to get devices position and Ti.GeoLocation.getCurrentPosition() is returning old data, judging by the timestamp and location it's providing. I ran GoogleMaps yesterday and it showed my position then, but now when I run my own application...
Force iOS to not use AGPS
Is there a way to force iOS devices to not use the AGPS but only the normal sattelite GPS with the Titanium.Geolocation method?
GPS jumping all over the place IOS
I've got a geolocation handler which deals with my GPS locations and sends them to a PHP service. This works perfectly fine on Android and is easily followed on a google maps web-app i made. However; I've tested it on an iPhone 4s and 4 and the coordinates...
Titanium.Geolocation.getCurrentPosition always same coordinates above
I work when I have the GPS on but when I turn it off whenever I get the coordinates above Uso el sdk 2.1.4 GA ~~~ Titanium.Geolocation.preferredProvider = Titanium.Geolocation.PROVIDER_GPS; Titanium.Geolocation.accuracy =...
Save geolocation coordinates in db
Hi, i want to save geo location coordinates in db for later retrieval... but geolocation response comes a little late ... and my insert query stores nothing in db ... Does anybody know what to do ?? Regards
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...
Only use the GPS to locate even if it is turned on WIFI
I have a problem, I'm creating an app where the heart is the GPS. I need the same coordinates if is also active wifi. I can only use the GPS without affecting the wifi? I use this code but when I turn on wifi the coordinate change. var gpsRule =...