{ "id": "75907", "key": "AC-2854", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-06-19T02:48:30.000+0000", "created": "2011-06-08T02:54:09.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "tguntharp", "key": "tguntharp", "displayName": "Tony Guntharp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:47.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": "Receiving error:\r\nE/Web Console( 304): ReferenceError: Can't find variable: Ti\r\n\r\nWhen trying to open webview url:'http://localhost:8080/index3.html'\r\n\r\nHTML code:\r\n\r\n\t\tTi.App.addEventListener('playpressed', function(data) {\r\n\t\t\t$(\"
\").text('Android play event fired').appendTo(\"#events\");\r\n\t\t});\r\n", "attachment": [], "flagged": false, "summary": "Android WebView JS injection", "creator": { "name": "gaiar", "key": "gaiar", "displayName": "Gaiar Baimouratov", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gaiar", "key": "gaiar", "displayName": "Gaiar Baimouratov", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio, build: 1.0.0.201106071155\r\nAndroid 2.2 Emulator Google API's\r\nTitanium Mobile SDK 1.7", "comment": { "comments": [ { "id": "156641", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "In order for us to progress this issue, please edit your ticket to include a proper [Use-case|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-CreatingGoodUsecases]. To clarify, the script should run without modification when added to a blank app.js. Hence, where is the window created? You should include this, so that the core devs can replicate the behavior in the quickest time.\r\n\r\nPlease ensure you format your ticket using the wiki markup provided.\r\n\r\nAlso, please state the Titanium SDK build date and hash.\r\n\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T15:38:48.000+0000", "updated": "2011-06-13T15:38:48.000+0000" }, { "id": "157097", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "This does not work as you expect because the Titanium API is not recognized when embedded in remote HTML web pages. Please see [this Q&A answer|http://developer.appcelerator.com/question/116950/tiappfireevent--webview--api-16-issue#answer-208695] for further explanation.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-19T02:46:37.000+0000", "updated": "2011-06-19T02:46:37.000+0000" }, { "id": "157098", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "The behavior is as expected. See explanation and solution [here|http://developer.appcelerator.com/question/116950/tiappfireevent--webview--api-16-issue#answer-208695]", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-19T02:48:30.000+0000", "updated": "2011-06-19T02:48:30.000+0000" }, { "id": "163087", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closed after 30 days of inactivity.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-16T16:50:17.000+0000", "updated": "2011-08-16T16:50:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }