jacobg commented on issue #372: OverrideUserAgent changes user agent for Cordova view too URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/372#issuecomment-584930604 I just switched from UIWebView to WkWebView, and so the patch script in my comment above just needs to be changed from editing `CDVUIInAppBrowser.m` to `CDVWKInAppBrowser.m`. However, I am noticing that the first time the in-app browser is opened it uses the default useragent string instead of the `OverrideUserAgent ` or `InAppBrowserOverrideUserAgent` string. Subsequent opens of the in-app browser use the overridden user agent string. It's really weird. I can debug in the code, and see that the overridden user agent string gets set by `CDVUserAgentUtil` to the `standardUserDefaults`, but for some reason the WkWebView is not picking it up the first time. Anyone else observe that happen as well?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
