cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-11352) WKWebView doesn't apply User-Agent configuration
Date Fri, 03 Jun 2016 00:06:59 GMT


ASF GitHub Bot commented on CB-11352:

Github user shazron commented on the issue:
    The lines I quoted show the descriptions of what failed - you don't need to touch the
tests, just fix your code. The tests run on the standard UIWebView, not WKWebView, and must
pass before any PR is accepted.
    In any case, in iOS 9, there is a "customUserAgent" property for WKWebView that should
be set instead:
and not the cordova workaround way.

> WKWebView doesn't apply User-Agent configuration
> ------------------------------------------------
>                 Key: CB-11352
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.1.1
>            Reporter: Andreas Kohn
>            Assignee: Shazron Abdullah
> {{config.xml}} contains 
> {code}
> <preference name="AppendUserAgent" value="something/version"/>
> {code}
> This is properly used for Android (cordova-android 5.1.1), but not with iOS+WKWebView
(cordova-ios 4.1.1).
> The cause is actually "documented": CDVUserAgentUtil:setUserAgent says that the default
settings must be registered before the webview is actually instantiated. But, CDVViewController:viewDidLoad
delays the call to setUserAgent until after the view has been created.
> AFAIR this worked with the UIWebView.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message