{ "id": "137625", "key": "AC-3246", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-01-20T06:05:35.000+0000", "created": "2014-10-03T03:48:32.000+0000", "labels": [ "TCSupportTriage", "accuracy", "coordinates", "geocoder", "geolocation", "realtime" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:57:39.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Ti.Geolocation doesn't update longitude and latitude. Sometimes I have to wait at least 50 seconds for it to update the coordinates and sometimes it takes a few minutes. I'd either drive continuously for a few feet and sometimes for a few miles or I'd be walking around my house which is a pretty big spacious house and geolocation doesn't update longitude and latitude until I wait at least 50 seconds. \r\n\r\nThis is the code:\r\nhttps://gist.github.com/jhrockwell/a0b6e39d6832a36a0d8b", "attachment": [], "flagged": false, "summary": "Ti.Geolocation doesn't update the latitude and longitude fast enough", "creator": { "name": "jhrockwell", "key": "jhrockwell", "displayName": "June Rockwell", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhrockwell", "key": "jhrockwell", "displayName": "June Rockwell", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 3.4, Alloy 1.5.1, iPhone 5s, iOS8", "comment": { "comments": [ { "id": "327986", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested this issue and it's working fine. I get it to update to the coordinates within 10 - 15 seconds.\r\n\r\nh5. TESTING ENVIRONMENT\r\n\r\nMacOS X 10.9.5, iPod iOS 8.0 Mobile SDK: 3.4.0.GA\r\n\r\nh5. CODE SAMPLE\r\nh4.tiapp.xml\r\n{code}\r\n \r\n \r\n \r\n NSLocationAlwaysUsageDescription\r\n \r\n Specify the reason for accessing the user’s location information.\r\n This appears in the alert dialog when asking the user for permission to\r\n access their location.\r\n \r\n \r\n \r\n \r\n{code}\r\nh4.app.js\r\n{code}\r\nif (Ti.Geolocation.locationServicesEnabled) {\r\n Ti.Geolocation.purpose = 'Get Current Location';\r\n Ti.Geolocation.accuracy = Ti.Geolocation.ACCURACY_BEST;\r\n Ti.Geolocation.distanceFilter = 10;\r\n Ti.Geolocation.preferredProvider = Ti.Geolocation.PROVIDER_GPS;\r\n\r\n Ti.Geolocation.addEventListener('location', function(e) {\r\n if (e.error) {\r\n alert('Error: ' + e.error);\r\n } else {\r\n alert(\"Lat: \" + e.coords.latitude + \";\\nlong: \"+ e.coords.longitude);\r\n }\r\n });\r\n} else {\r\n alert('Please enable location services');\r\n}\r\n{code}\r\n\r\n Also i checked the KitchenSink sample. It's working fine too, Thanks.", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-10-14T06:20:44.000+0000", "updated": "2014-10-14T09:18:20.000+0000" }, { "id": "327997", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~jhrockwell]! \r\n\r\nCan you please take a look into the posted test case and report back if it works for you? \r\n\r\nThanks a lot! \r\n\r\nBest Regards! ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-10-14T09:20:08.000+0000", "updated": "2014-10-14T09:20:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }