{ "id": "114654", "key": "TIMOB-13923", "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": [ { "id": "15494", "description": "2013 Sprint 12 Core", "name": "2013 Sprint 12 Core", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-10-22T22:22:19.000+0000", "created": "2013-05-20T21:23:02.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_webview", "supportTeam" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-22T22:22:24.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When building the app for distribution on Android. Click events on web view are no longer fired, however when building for development the app works fine.\r\n\r\nThis occurs when adding a click event to a webview\r\napp.js\r\n{code}\r\nvar webView = Titanium.UI.createWebView({\r\n scalesPageToFit : true,\r\n left : 0,\r\n width : '100%',\r\n showScrollbars : false,\r\n willHandleTouches : false,\r\n disableBounce: true,\r\n anchorPoint: {\r\n x: 0.5,\r\n y: 0.5\r\n }\r\n});\r\n\r\nvar html = '' + \r\n '' +\r\n '' +\r\n '' + \r\n '' + \r\n '' +\r\n 'Click here' +\r\n '' + \r\n '';\r\nwebView.html = html;\r\n{code}\r\nglobals.js\r\n{code}\r\nfunction clickme() {\r\n alert('Click!');\r\n}\r\n\r\n{code}", "attachment": [ { "id": "38817", "filename": "webViewClick.zip", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-21T16:50:48.000+0000", "size": 9694352, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: WebView click events do not fire when distributed to device", "creator": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows\r\nTi SDK: 2.1.1, 2.1.5\r\nAndroid 2.2/4.1.2\r\nDevice: Droid Razr 2.3.5", "comment": { "comments": [ { "id": "253137", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I attempted to use sample attached. Works on 3.1.0.GA, anything below does not:\n\nh6.2.1.1.GA\n{code}\n05-21 12:21:02.795: I/TiWebChromeClient.console(17948): (main) [26603,58379] Uncaught ReferenceError: clickme is not defined (1:)\n{code}\n\nh6.2.1.5.v20130226113056\n{code}\n05-21 12:23:30.514: I/TiWebChromeClient.console(18340): (main) [2676,4729] Uncaught ReferenceError: clickme is not defined (1:) \n{code}", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-05-21T17:50:53.000+0000", "updated": "2013-05-21T17:50:53.000+0000" }, { "id": "255833", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~egomez], for the scenario you are talking about, I would try the first approach that I mentioned. From the use case description, it looks like you will need to disable minification completely. When testing those PRs, I would make sure you have the SKIP_JS_MINIFY environment variable defined. Let me know if that works.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-04T16:22:48.000+0000", "updated": "2013-06-04T16:23:02.000+0000" }, { "id": "256648", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Going to resolve this as fixed.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-07T16:36:48.000+0000", "updated": "2013-06-07T16:36:48.000+0000" }, { "id": "276252", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed.\n\nTiSDK 3.2.0.v20131022050844\nCLI 3.2.0\nAndroid Galaxy Note II 4.1.2\nAndroid Google Nexus Galaxy 4.3\n\nClosing.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T22:19:10.000+0000", "updated": "2013-10-22T22:19:10.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }