{ "id": "173895", "key": "TIMOB-27253", "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": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-08-21T13:44:15.000+0000", "created": "2019-07-18T10:54:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "engSchedule", "regression" ], "versions": [ { "id": "20791", "name": "Release 8.0.2", "archived": false, "released": true, "releaseDate": "2019-06-18" }, { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [ { "id": "57743", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99017", "key": "TIMOB-10397", "fields": { "summary": "Android: Ti namespace does not work in webview after reload", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-08-21T13:44:15.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When using a remote webview I am still able to log messages to the console (on Android I am unable to log messages when using a webview).\r\n\r\n*app.js*\r\n{code:java}\r\nvar window = Ti.UI.createWindow({\r\n\r\n});\r\n\r\n var webview = Ti.UI.createWebView({\r\n top: 0,\r\n width: '100%',\r\n height: 150\r\n });\r\n\r\n var loadButton = Ti.UI.createButton({\r\n title: \"load html\",\r\n left: 0,\r\n top: 160,\r\n width: 150,\r\n height: 100\r\n });\r\n\r\n var logButton = Ti.UI.createButton({\r\n title: \"Log Message\",\r\n right: 0,\r\n top: 160,\r\n width: 150,\r\n height: 100\r\n });\r\n\r\n var reloadButton = Ti.UI.createButton({\r\n title: \"reload webview\",\r\n left: 0,\r\n top: 270,\r\n width: 150,\r\n height: 100\r\n });\r\n\r\n var remoteButton = Ti.UI.createButton({\r\n title: \"remote load webview\",\r\n right: 0,\r\n top: 270,\r\n width: 150,\r\n height: 100\r\n });\r\n\r\n remoteButton.addEventListener(\"click\", function() {\r\n webview.url = \"http://www.google.com\";\r\n\r\n });\r\n\r\n loadButton.addEventListener(\"click\", function() {\r\n webview.url = \"Wv.html\";\r\n\r\n });\r\n\r\n logButton.addEventListener(\"click\", function() {\r\n webview.evalJS(\"Ti.API.info(\\\"-------------------------------hello\\\")\");\r\n\r\n });\r\n\r\n reloadButton.addEventListener(\"click\", function() {\r\n webview.reload();\r\n });\r\n\r\n window.add(webview);\r\n window.add(remoteButton);\r\n window.add(loadButton);\r\n window.add(logButton);\r\n window.add(reloadButton);\r\n\r\n window.open()\r\n{code}\r\n\r\n*Wv.html*\r\n{code:java}\r\n\r\n\t
\r\n\t\ttest0 | \r\n\t\t\t