[AC-4997] setUserAgent on webview on iOS does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2017-05-28T20:19:32.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | hrncek@gmail.com |
Assignee | Shak Hossain |
Created | 2017-05-27T07:03:07.000+0000 |
Updated | 2017-05-28T20:19:32.000+0000 |
Description
I tried to set custom user agent on webview on iOS
<Alloy>
<Window id="oAuth">
<WebView id="webview" />
</Window>
</Alloy>
$.webview.setUserAgent("My customer User agent");
What 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"
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).
I'm using 6.0.4 Application normally compiles and no complains about calling the function on the view.
Resolving as Invalid, try again with 6.1.0. It does not crash because the setters are computed by the proxy.