{ "id": "61687", "key": "TIMOB-1055", "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": "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-11-08T23:47:56.000+0000", "created": "2011-04-15T02:42:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "module_webview", "qe-testadded" ], "versions": [ { "id": "11971", "description": "iOS5 and select Android fixes", "name": "Release 1.7.3", "archived": true, "released": true, "releaseDate": "2011-10-18" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-25T08:48:57.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}

\r\nhttp://developer.appcelerator.com/question/30341/android-webview-us...

{html}", "attachment": [], "flagged": false, "summary": "Android: Expose ability to set user agent for webview instances", "creator": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124710", "author": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I was talking to someone who mentioned this shouldn't be\ndifficult as it exists in Android, it's just a matter of adding as\npassthrough setting for Titanium.
\nThis would allow us to wrap alot of iPhone only sites up.

{html}", "updateAuthor": { "name": "biztactix", "key": "biztactix", "displayName": "Biztactix", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:43.000+0000", "updated": "2011-04-15T02:42:43.000+0000" }, { "id": "170241", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To test this we can just verify a default user agent and try replacing it with our own, i.e.:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({ top: 0, left: 0, right: 0, bottom: 0 });\r\nvar webview = Ti.UI.createWebView({ url: 'http://www.google.com' });\r\nwin.add(webview);\r\nwin.open();\r\n\r\nTi.API.debug(webview.getUserAgent());\r\nwebview.setUserAgent(\"custom user agent\");\r\n\r\nTi.API.debug(\"should be custom user agent: \" + webview.getUserAgent());\r\n\r\n{code}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-24T11:57:02.000+0000", "updated": "2011-10-24T11:57:02.000+0000" }, { "id": "171206", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have 2 pull requests currently pending for this that need to be merged post-V8:\r\n\r\n[https://github.com/appcelerator/titanium_mobile/pull/407]\r\n[https://github.com/appcelerator/titanium_mobile/pull/583]\r\n\r\n", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-02T11:22:38.000+0000", "updated": "2011-11-02T11:22:38.000+0000" }, { "id": "182412", "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.2\r\nNexus S OS 2.3.6\r\n\r\nVerified that setting a custom user agent works as expected as per Marshall's test case", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-08T13:02:57.000+0000", "updated": "2012-02-08T13:02:57.000+0000" }, { "id": "281112", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil test case added.\nPR link:\nhttps://github.com/appcelerator/titanium_mobile/pull/5020", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-25T08:48:57.000+0000", "updated": "2013-11-25T08:48:57.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }