{ "id": "131744", "key": "TIMOB-17197", "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": null, "resolutiondate": null, "created": "2014-06-15T05:56:42.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "hudder" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38651", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "78742", "key": "TIMOB-4982", "fields": { "summary": "Geolocation not working consistently on Android WebView (with suggested patch)", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:52.000+0000", "status": { "description": "Submitted for code review", "name": "In Review", "id": "10003", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\n\nThe geolocation bug which used to exist in version 3.0.0 (TIMOB-4982) has been reintroduced in version 3.2.0 The last working good version is 3.1.3. .\n\nh4. Test Case\n1. Create a new mobile project (classic)\n2. Paste this to app.js\n3. {code}\n//var URL=\"http://maps.google.com/maps?saddr=39.745740, -104.985757&daddr=39.740368, -104.981938\";\nvar URL = \"http://maps.google.com\";\nvar tWebView = Ti.UI.createWebView({\n\turl:URL,\n\ttop:0, \n\tleft:0,\n});\n\nvar WWWwindow = Titanium.UI.createWindow({\n\tbackgroundColor:'#E0E0E0',\n\tnavBarHidden:true}\n);\nWWWwindow.add(tWebView);\nWWWwindow.open();\n{code}\n4. The map never ask for permission for the GPS access, not even if the user presses the location icon google will briefly flash \"Location could not be identified\"\n\n\nh4. Extra information\nUse case:\n When we open a html5 page that as a geolocation titanium does not give access to GPS on the device.\n", "attachment": [ { "id": "51907", "filename": "tiapp.xml", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-10T03:53:47.000+0000", "size": 2356, "mimeType": "text/xml" } ], "flagged": false, "summary": "Android: Geolocation is not turning on in Webview", "creator": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "subtasks": [], "reporter": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "environment": "Mobile SDK 3.3.0.beta\r\nMobile SDK 3.2.3\r\nMobile SDK 3.2.2\r\nAndroid 4.4.2\r\nDevice: Moto X\r\n", "comment": { "comments": [ { "id": "310706", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We will investigate this in an upcoming sprint.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-24T18:18:21.000+0000", "updated": "2014-06-24T18:18:21.000+0000" }, { "id": "315907", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "Is it possible to get an eta on this issue? this is a show stopper for us and there are fixes in 3.2 and 3.3 that we need to use.\r\n\r\nthanks\r\nRamesh", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-07-26T01:13:12.000+0000", "updated": "2014-07-26T01:13:12.000+0000" }, { "id": "318802", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "Can we please get a status on when we can expect the fix for this? We got to go live and we are stuck due to this issue. I hope you can accommodate this in the upcoming release.", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-08-15T04:05:56.000+0000", "updated": "2014-08-15T04:05:56.000+0000" }, { "id": "320568", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA, 3.2.3.GA, 3.2.2.G.A\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T13:55:31.000+0000", "updated": "2014-08-27T13:55:31.000+0000" }, { "id": "324585", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "May I have an update on this issue. We are really very desperate for a fix for this issue. It was rather sad to note that a decision was taken to move it out of sprint 19 and be put in backlog. Can we please have a fix for this or atleast an ETA? I wish I knew how to help you to get this addressed.\r\n\r\n ", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-09-18T20:58:33.000+0000", "updated": "2014-09-18T20:58:33.000+0000" }, { "id": "324852", "author": { "name": "tsriniv", "key": "tsriniv", "displayName": "Thiru", "active": true, "timeZone": "America/Denver" }, "body": "Can you please give an ETA on this issue? I am waiting for a fix on this as well.", "updateAuthor": { "name": "tsriniv", "key": "tsriniv", "displayName": "Thiru", "active": true, "timeZone": "America/Denver" }, "created": "2014-09-21T15:41:11.000+0000", "updated": "2014-09-21T15:41:11.000+0000" }, { "id": "326862", "author": { "name": "tsriniv", "key": "tsriniv", "displayName": "Thiru", "active": true, "timeZone": "America/Denver" }, "body": "Hi Ingo,\r\n\r\nWhen can I have a fix for this issue? Please respond. Thanks!", "updateAuthor": { "name": "tsriniv", "key": "tsriniv", "displayName": "Thiru", "active": true, "timeZone": "America/Denver" }, "created": "2014-10-03T02:03:08.000+0000", "updated": "2014-10-03T02:03:08.000+0000" }, { "id": "327248", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-08T04:46:07.000+0000", "updated": "2014-10-08T04:46:07.000+0000" }, { "id": "327367", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "I tried it and it does not work. I actually already had it in my TAPPIxml .I tried with 3.4 GA. My settings were exactly same as what was described to Chee", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-10-08T23:05:44.000+0000", "updated": "2014-10-08T23:06:59.000+0000" }, { "id": "327419", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is the environment I got this working:\r\nGalaxy S5 (actual device)\r\nandroid 4.4.2\r\nTitanium SDK 3.4.0GA\r\nCLI 3.4.0\r\n\r\nMay I know yours [~rramesh1] I'll investigate further", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-09T09:43:56.000+0000", "updated": "2014-10-09T09:43:56.000+0000" }, { "id": "327527", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "Nexus 4, 5 and 7(2012)\r\nandroid 4.4.4\r\nti 3.4 GA\r\n\r\nCan you please send me the TAPPI.XML you are using.", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-10-10T00:16:31.000+0000", "updated": "2014-10-10T00:17:04.000+0000" }, { "id": "327558", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~rramesh1] added attachment.\r\n\r\nI tried to get this to work on simulator (the default titanium_1_WVGA800) \r\nInitially I can't get it to work but, by following these steps:\r\n1. Either use geo fix through telnet localhost or ddms in android sdk tools, to mock up a location for the emulator\r\n2. Open google maps app on the emulator. There will be some agreement page but you can just close it, as long as a pin appears on the status bar. The pin will disappear after closing the google maps app but it's ok.\r\n3. go back to the sample app built on titanium, and the map will move to your mock up location and show a blue dot. \r\n\r\nI'm guessing that the mockup location only gets registered on the emulator when google maps is instantiated. \r\nHowever when i tried the sample app on the physical device, I didn't have to do the above steps to get it to work. \r\nTo summarize, I only modified tiapp.xml and got the geolocation working on both emulator and device.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-10T03:39:44.000+0000", "updated": "2014-10-10T03:52:45.000+0000" }, { "id": "327569", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "I tried exactly what you did with the tiapp.xml that you have attached to the ticket. and GeoLocation does not turn on. google maps states \"your location could not be determined\"\r\n\r\n", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-10-10T06:20:13.000+0000", "updated": "2014-10-10T06:20:13.000+0000" }, { "id": "327600", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "If you are using Google maps it does not show the message right away, you will have to click on the icon for it to find your location. Then you will see the message. if you didn't click on the icon it might lead you to think that it is working.", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-10-10T14:10:33.000+0000", "updated": "2014-10-10T14:51:17.000+0000" }, { "id": "327803", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I screen recorded the steps to get this working, you can obtain the link from below.\r\nhttps://drive.google.com/file/d/0B5kns9m6-03wajB6LXdoYS0xbFk/view?usp=sharing\r\n\r\nThe steps shown were:\r\n1. From studio, launch sample app, in my case, TIMOB17197. \r\n2. You will see that as expected \"your location cannot be determined\"\r\n3. Run ddms (in androidsdk->tools folder), select the simulator instance, choose emulator control, and send any longitude latitude\r\n4. Run google maps (I'm guessing by doing so the device 'captures' the sent longitude latitude)\r\n5. Close it and go back to TIMOB17197, it'll work.\r\n\r\n**Note**\r\nWhen I run this app on a physical device,I DID NOT have to follow the above steps and it just works.\r\n\r\nI hope this video helps, at least to make sure everyone's on the same page then we can investigate further.\r\nPardon the speed of the video.\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-13T02:51:28.000+0000", "updated": "2014-10-13T02:51:28.000+0000" }, { "id": "329463", "author": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "body": "do you think there could be a diffrence between MAC and Windows for this bug. I can reproduce this bug when I run out of Windows. I will checkout Mac When I get a chance", "updateAuthor": { "name": "rramesh1", "key": "rramesh1", "displayName": "Ramesh RAMAMURTHY", "active": true, "timeZone": "America/Denver" }, "created": "2014-10-25T17:43:57.000+0000", "updated": "2014-10-25T17:43:57.000+0000" }, { "id": "330795", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "There maybe a difference. I just had the opportunity to try this on a windows platform. It works fine on the physical android device, but fails on simulator.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-11-05T05:12:15.000+0000", "updated": "2014-11-05T05:12:15.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }