{ "id": "112780", "key": "AC-1926", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-04-12T22:31:44.000+0000", "created": "2013-04-12T21:12:26.000+0000", "labels": [ "addeventlistener", "andoid", "manifest", "ti.app", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When tiapp.xml includes the following code: \r\n\r\n{code:xml}\r\n\r\n 17\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nI am unable to utilize any Ti.App method in a webview, that's content is local, on my Android device. Here is an example of the JavaScript in the HTML file:\r\n\r\n{code:javascript}\r\ntry {\r\n\tTitanium.App.addEventListener(\"app:fromTitanium\",function(e) {\r\n \talert(e.message);\r\n\t});\r\n} catch (err) {\r\n\talert(err);\r\n};\r\n{code} \r\n\r\nThe error that is thrown is:\r\n\r\nTypeError: Object [object Object] has no method 'addEventListener'", "attachment": [], "flagged": false, "summary": "Ti.App methods unavilable in local webview on Android when manifest is customized", "creator": { "name": "rmarston", "key": "rmarston", "displayName": "Rob Marston", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmarston", "key": "rmarston", "displayName": "Rob Marston", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Developing on Mac OSX 10.8.3 using Titanium Studio 3.0.2 with Titanium SDK 3.0.2GA and Android SDK 4.2.2 (V8 Runtime) for Google Nexus 10. ", "comment": { "comments": [ { "id": "247364", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rob,\r\n\r\nThanks for the report. Could you provide us with a complete/simple test case for this?\r\n\r\nThanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-12T22:31:44.000+0000", "updated": "2013-04-12T22:31:44.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }