Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4997] setUserAgent on webview on iOS does not work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2017-05-28T20:19:32.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reporterhrncek@gmail.com
AssigneeShak Hossain
Created2017-05-27T07:03:07.000+0000
Updated2017-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"

Comments

  1. Hans Knöchel 2017-05-28

    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).
  2. hrncek@gmail.com 2017-05-28

    I'm using 6.0.4 Application normally compiles and no complains about calling the function on the view.
  3. Hans Knöchel 2017-05-28

    Resolving as Invalid, try again with 6.1.0. It does not crash because the setters are computed by the proxy.

JSON Source