{ "id": "86372", "key": "AC-2891", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T14:48:58.000+0000", "created": "2012-02-11T11:29:09.000+0000", "labels": [ "android", "custom", "fireevent", "module", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:51.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": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In Android, a webview can can call Titanium.App.fireEvent just fine UNLESS you have a custom module in your project. Once you call a custom module with the require() syntax, all webview fireEvent calls fail. See the complete example below (you'll need to add your own custom module):\r\n \r\n\r\n// if you uncomment the external module line below, webview can no longer call fireEvent!\r\n//var SQLOBJ = require(\"com.dmarie.sql\");\r\n\r\nvar win = Titanium.UI.createWindow({\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nTitanium.App.addEventListener(\"testEvent\",function(e){\r\n\tTitanium.API.info(\"****testEvent fired...\");\r\n\talert(\"it works:\" + e.obj);\r\n})\r\nvar webview = Titanium.UI.createWebView({\r\n\thtml : \"
\"+\r\n\t\t\t\"