{ "id": "62239", "key": "TIMOB-1607", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11365", "description": "Mobile 1.8.0 M12", "name": "Sprint 2011-33", "archived": true, "released": true, "releaseDate": "2011-08-22" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-08-22T16:56:50.000+0000", "created": "2011-04-15T02:57:14.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "module_webview", "qe-testadded" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "12361", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "78263", "key": "TIMOB-4801", "fields": { "summary": "Android: Enable flashplayer settings(plugins) for webview in Android", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "14884", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "79530", "key": "TIDOC-297", "fields": { "summary": "APIDoc: Document WebView Plugins on Android", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-02-08T17:22:17.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

In TIUIWebView set allow plugins true.

\r\n

See Helpdesk\r\n37201

\r\n

This will probably require more research than that because in\r\nthe past turning plugins on had no effect.

{html}", "attachment": [], "flagged": false, "summary": "Android: WebView Enable Plugins", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "163355", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Example Code\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000000');\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'WebView Plugins',\r\n backgroundColor:'#000000'\r\n});\r\n\r\nvar btnOff = Ti.UI.createButton({\r\n\ttitle : 'OFF',\r\n\twidth: 90,\r\n\theight: 60,\r\n\ttop: 20\r\n});\r\n\r\nbtnOff.addEventListener('click', function() {\r\n\tvar win = Titanium.UI.createWindow({\r\n\t\ttitle: 'PLUGIN_STATE_OFF',\r\n\t\tnavBarHidden: false,\r\n\t\tbackgroundColor: 'black',\r\n\t\tpluginState: Ti.UI.Android.WEBVIEW_PLUGINS_OFF,\r\n\t\turl: 'timob-1607-webview.js'\r\n\t}).open();\r\n});\r\n\r\nvar btnOn = Ti.UI.createButton({\r\n\ttitle : 'ON',\r\n\twidth: 90,\r\n\theight: 60,\r\n\ttop: 100\r\n});\r\n\r\nbtnOn.addEventListener('click', function() {\r\n\tvar win = Titanium.UI.createWindow({\r\n\t\ttitle: 'PLUGIN_STATE_ON',\r\n\t\tnavBarHidden: false,\r\n\t\tbackgroundColor: 'red',\r\n\t\tpluginState: Ti.UI.Android.WEBVIEW_PLUGINS_ON,\r\n\t\turl: 'timob-1607-webview.js'\r\n\t}).open();\r\n});\r\n\r\nvar btnOnDemand = Ti.UI.createButton({\r\n\ttitle : 'ON DEMAND',\r\n\twidth: 90,\r\n\theight: 60,\r\n\ttop: 180\r\n});\r\n\r\nbtnOnDemand.addEventListener('click', function() {\r\n\tvar win = Titanium.UI.createWindow({\r\n\t\ttitle: 'PLUGIN_STATE_ON_DEMAND',\r\n\t\tnavBarHidden: false,\r\n\t\tbackgroundColor: 'blue',\r\n\t\tpluginState: Ti.UI.Android.WEBVIEW_PLUGINS_ON_DEMAND,\r\n\t\turl: 'timob-1607-webview.js'\r\n\t}).open();\r\n});\r\n\r\nwin1.add(btnOff);\r\nwin1.add(btnOn);\r\nwin1.add(btnOnDemand);\r\nwin1.open();\r\n{code}\r\n\r\n{code:title=timob-1607-webview.js}\r\nvar win = Ti.UI.currentWindow;\r\nvar activity = Ti.Android.currentActivity;\r\n\r\nvar webview = Ti.UI.createWebView({\r\n\turl:'http://www.youtube.com/embed/US7xaxyFETI',\r\n\tpluginState: win.pluginState\r\n});\r\n\r\nwin.add(webview);\r\n\r\nactivity.addEventListener(\"pause\", function() {\r\n\tif (webview != null) {\r\n\t\twebview.pause();\r\n\t}\r\n});\r\n\r\nactivity.addEventListener(\"resume\", function() {\r\n\tif (webview != null) {\r\n\t\twebview.resume();\r\n\t}\r\n});\r\n{code}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-18T15:55:26.000+0000", "updated": "2011-08-18T15:55:26.000+0000" }, { "id": "182513", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 1.0.8.201201262211\r\nTi Mob SDK 1.9.0.v20120207171634\r\nOSX Lion 10.7.3\r\nNexus S OS 2.3.5 v8/rhino\r\n\r\nVerified with a modified version of sample code, flash player installed, and the expected results of plugins being on/off/on demand is shown\r\n", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T17:22:17.000+0000", "updated": "2012-02-08T17:22:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }