{ "id": "167967", "key": "AC-4997", "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": "2017-05-28T20:19:32.000+0000", "created": "2017-05-27T07:03:07.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-28T20:19:32.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "I tried to set custom user agent on webview on iOS\r\n\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\n\r\n{code:java}\r\n$.webview.setUserAgent(\"My customer User agent\");\r\n{code}\r\n\r\nWhat I see when I capture the traffic with wireshark is that user-agent header in HTTP request did not change and is still default one \"....iOS....Safari\"", "attachment": [], "flagged": false, "summary": "setUserAgent on webview on iOS does not work", "creator": { "name": "hrncek@gmail.com", "key": "hrncek@gmail.com", "displayName": "hrncek@gmail.com ", "active": true, "timeZone": "Europe/Tallinn" }, "subtasks": [], "reporter": { "name": "hrncek@gmail.com", "key": "hrncek@gmail.com", "displayName": "hrncek@gmail.com ", "active": true, "timeZone": "Europe/Tallinn" }, "environment": "iOS ipad/iPhone version 10.x", "comment": { "comments": [ { "id": "420563", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Which Titanium SDK version are you using? [The property|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.WebView-property-userAgent] was added in 6.1.0 (released last week).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-28T18:14:22.000+0000", "updated": "2017-05-28T18:14:22.000+0000" }, { "id": "420564", "author": { "name": "hrncek@gmail.com", "key": "hrncek@gmail.com", "displayName": "hrncek@gmail.com ", "active": true, "timeZone": "Europe/Tallinn" }, "body": "I'm using 6.0.4 \r\nApplication normally compiles and no complains about calling the function on the view.", "updateAuthor": { "name": "hrncek@gmail.com", "key": "hrncek@gmail.com", "displayName": "hrncek@gmail.com ", "active": true, "timeZone": "Europe/Tallinn" }, "created": "2017-05-28T19:05:14.000+0000", "updated": "2017-05-28T19:05:14.000+0000" }, { "id": "420565", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as Invalid, try again with 6.1.0. It does not crash because the setters are computed by the proxy.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-28T20:19:32.000+0000", "updated": "2017-05-28T20:19:32.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }