You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andreas Kohn (JIRA)" <ji...@apache.org> on 2016/12/30 11:47:58 UTC
[jira] [Resolved] (CB-11352) WKWebView doesn't apply User-Agent
configuration
[ https://issues.apache.org/jira/browse/CB-11352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Kohn resolved CB-11352.
-------------------------------
Resolution: Fixed
Mark as resolved - CB-10228 and linked issues were resolved, and the PR has been marked as resolved as well.
> WKWebView doesn't apply User-Agent configuration
> ------------------------------------------------
>
> Key: CB-11352
> URL: https://issues.apache.org/jira/browse/CB-11352
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin WKWebViewEngine
> Affects Versions: 4.1.1
> Reporter: Andreas Kohn
> Assignee: Shazron Abdullah
> Labels: pendingPR, triaged
>
> {{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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org