{ "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\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t
test0
\r\n\t\r\n\r\n{code}\r\n\r\n*Test Steps*\r\n# Create an app with the above test files\r\n# Click on the {{load html button}}\r\n# Should display {{test0}} at the top\r\n# Press {{Log Message}}\r\n# Should log a message \r\n# Press {{Reload Webview}}\r\n# Press {{Log Message}}\r\n# Should log a message \r\n# Press {{remote load webview}}\r\n# Should see google homepage \r\n# Press {{Log Message}}\r\n\r\n*Expected result*\r\nLog message should not be logged when using a remote webview.\r\n\r\n*Actual result*\r\nLog message is still logged when using a remote webview.\r\n", "attachment": [], "flagged": false, "summary": "[iOS] Titanium APIs are able to be used for remote webviews", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iPhone 6s 12.2\r\nAndroid pixel XL 7.1.1. Emulator \r\nMacOS Mojave version 10.14.4\r\nXcode 11 Beta 3\r\nNode.js ^8.12.0\r\n\"NPM\":\"4.2.13\",\"CLI\":\"7.1.0-master.24\"\r\nSDK 8.0.2.GA \r\nSDK 8.1.0.v20190716120350", "closedSprints": [ { "id": 1160, "state": "closed", "name": "2019 Sprint 17", "startDate": "2019-08-12T07:59:28.950Z", "endDate": "2019-08-25T07:59:00.000Z", "completeDate": "2019-08-26T15:35:29.980Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "449962", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/11065", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-19T22:54:24.000+0000", "updated": "2019-07-19T22:54:24.000+0000" }, { "id": "450104", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR passed. Waiting for 8.1.0 GA to merge this PR. Also back port PR is needed .", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-07-26T21:05:56.000+0000", "updated": "2019-07-26T21:05:56.000+0000" }, { "id": "450110", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR(8_1_X): https://github.com/appcelerator/titanium_mobile/pull/11086", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-07-26T23:26:21.000+0000", "updated": "2019-07-26T23:26:21.000+0000" }, { "id": "450630", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to master. Waiting on rebuild for 8_1_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-08-20T17:10:43.000+0000", "updated": "2019-08-20T17:10:43.000+0000" }, { "id": "450642", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to 8_1_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-08-20T18:45:26.000+0000", "updated": "2019-08-20T18:45:26.000+0000" }, { "id": "450668", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket* fix verified in SDK version {{8.2.0.v20190820104021}}, {{8.1.1.v20190820143437}} and {{8.3.0.v20190820103430}}.\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11065\r\nPR(8_1_X): https://github.com/appcelerator/titanium_mobile/pull/11086\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-21T13:44:08.000+0000", "updated": "2019-08-21T13:44:08.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }