[ 
https://issues.apache.org/jira/browse/CB-11352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15311721#comment-15311721
 ] 

ASF GitHub Bot commented on CB-11352:
-------------------------------------

Github user ankon commented on the issue:

    https://github.com/apache/cordova-ios/pull/225
  
    Hmm. I'm quite new to objective c, so need to understand more how to fix 
that.
    
    Thinking along the lines of giving the engine plugin the chance to report 
what the user agent would be, which WKWebView then would do by creating a 
temporary view. Alternatively: is there a point where the engine gets called 
and could safely recreate the view, some form of "yes, we're good, finalize 
your setup?"
    
    Does that sound reasonable?


> 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: 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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to