{ "id": "171115", "key": "TIMOB-25784", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-03-02T00:35:43.000+0000", "created": "2018-02-15T13:31:35.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-04T13:04:50.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Test Code :\r\n{code}\r\nfunction doClick(e) {\r\n Titanium.Geolocation.preferredProvider = \"gps\";\r\n Titanium.Geolocation.purpose = \"user coordinates\";\r\n Titanium.Geolocation.distanceFilter = 10;\r\n\r\n Titanium.Geolocation.getCurrentPosition(function(e) {\r\n if (!e.success || e.error) {\r\n return;\r\n }\r\n\r\n var longitude = e.coords.longitude;\r\n var latitude = e.coords.latitude;\r\n var altitude = e.coords.altitude;\r\n var heading = e.coords.heading;\r\n var accuracy = e.coords.accuracy;\r\n var speed = e.coords.speed;\r\n var timestamp = e.coords.timestamp;\r\n var altitudeAccuracy = e.coords.altitudeAccuracy;\r\n Titanium.Geolocation.reverseGeocoder(latitude, longitude, function(evt) {\r\n if (evt.success) {\r\n var places = evt.places;\r\n alert('Your Current Location is : ' + places[0].address + '\\n Latitude:' + latitude + '\\nLongitude : ' + longitude);\r\n\r\n } else {\r\n Ti.API.info(\"Reverse geocoding error\");\r\n }\r\n });\r\n });\r\n}\r\n\r\n$.index.open();\r\n{code}\r\nTest Environment:\r\n{code}\r\nAppcelerator Command-Line Interface, version 7.0.2\r\nCopyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.16299\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 15.9GB\r\n\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n node-appc Version = 0.2.41\r\n\r\nTitanium SDKs\r\n 7.0.2.GA\r\n Version = 7.0.2\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\7.0.2.GA\r\n Platforms = android, windows\r\n git Hash = 5ef0c56\r\n git Timestamp = 2/9/2018 19:02\r\n node-appc Version = 0.2.43\r\n 7.0.1.GA\r\n Version = 7.0.1\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\7.0.1.GA\r\n Platforms = android, windows\r\n git Hash = f5ae7e5\r\n git Timestamp = 12/18/2017 18:45\r\n node-appc Version = 0.2.43\r\n 7.0.0.GA\r\n Version = 7.0.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\7.0.0.GA\r\n Platforms = android, windows\r\n git Hash = f09dec4\r\n git Timestamp = 12/5/2017 21:33\r\n node-appc Version = 0.2.43\r\n 6.3.0.GA\r\n Version = 6.3.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.3.0.GA\r\n Platforms = android, mobileweb, windows\r\n git Hash = 3620088\r\n git Timestamp = 11/1/2017 01:16\r\n node-appc Version = 0.2.43\r\n 5.5.1.GA\r\n Version = 5.5.1\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.5.1.GA\r\n Platforms = android, mobileweb, windows\r\n git Hash = b18727f\r\n git Timestamp = 09/27/16 05:38\r\n node-appc Version = 0.2.36\r\n\r\nIntelĀ® Hardware Accelerated Execution Manager (HAXM)\r\n Not installed\r\n\r\nJava Development Kit\r\n Version = 1.8.0_131\r\n Java Home = C:\\Program Files (x86)\\Java\\jdk1.8.0_131\r\n\r\n{code}\r\n\r\nThanks ", "attachment": [ { "id": "64864", "filename": "loc.png", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2018-02-15T13:30:11.000+0000", "size": 110866, "mimeType": "image/png" } ], "flagged": false, "summary": "Windows: Ti.Geolocation.getCurrentPosition location is not accurate", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": "SDK 7.0.1.GA\r\nWindows 10\r\nSurface Pro 3\r\n\r\n", "closedSprints": [ { "id": 126, "state": "closed", "name": "2018 Sprint 05 SDK", "startDate": "2018-02-25T19:38:08.926Z", "endDate": "2018-03-11T18:38:00.000Z", "completeDate": "2018-03-11T22:06:01.520Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "434557", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~aislam] I have Surface Pro 4 device. It may not return accurate location because Surface Pro device doesn't have GPS device unless you have external GPS device attached...It may use WiFi to try to get location but it may not accurate.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-16T06:06:20.000+0000", "updated": "2018-02-16T06:06:20.000+0000" }, { "id": "434605", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "You'll need physical device, such as external GPS device in order to get correct location.\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-18T03:57:36.000+0000", "updated": "2018-02-18T03:57:36.000+0000" }, { "id": "434878", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~mrahman] How different is the result when compared to the actual location? It actually all depends on how precise the build-in GPS system works. You might also want to see if your app has permission to access precise location, by checking [Windows 10 location service setting|https://privacy.microsoft.com/en-us/windows-10-location-and-privacy].", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-02-26T02:10:10.000+0000", "updated": "2018-03-02T00:36:21.000+0000" }, { "id": "435084", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Awesome, closing this ticket.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-03-02T00:35:43.000+0000", "updated": "2018-03-02T00:35:43.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }