wkwebview

cordova ios WKWebView upgrade - errors when showing some images

雨燕双飞 提交于 2020-12-15 07:09:20
问题 I'm working on an app with Ionic 1 and AngularJS 1.5 I was told that I need to upgrade my ios to use WKWebView instead of UIWebView: https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/?utm_campaign=enterprise&utm_source=hs_email&utm_medium=email&utm_content=85128961&_hsenc=p2ANqtz--vsf3kcg7MssMWwjv2_GpHmVbzN23_5fXDfKT0E6OileYraLWs9btGPqWUcq5mzTKCtKwXGqO35V3SnInjypj4uqSBRg&_hsmi=85128961 Here is my setup: cordova-android 8.1.0 cordova-ios 5.1.0 cordova-plugin

Cordova iOS 6+ Autoplay Video in External Screen

隐身守侯 提交于 2020-12-15 04:57:33
问题 I'm using cordova-plugin-wkwebview-external-screen to playback inline media on a secondary screen (via AirPlay or HDMI adapter). The media loads fine but does not autoplay videos in the external webview. (autoplay works fine in primary webview) In my config.xml I have the following: <preference name="AllowInlineMediaPlayback" value="true" /> <preference name="MediaTypesRequiringUserActionForPlayback" value="none" /> I have attempted adding the following configuration in

Xamarin WKWebView and Cookies

柔情痞子 提交于 2020-12-13 03:39:15
问题 I have a Xamarin Forms app that uses cookies to track login status and uses both HTTPRequests and Webviews, so both need to share cookies. With UIWebView this cookies were shared without any extra management on my part; with WKWebView this appears not to be the case. I have been searching for an explanation on how cookies are handled with WKWebView or an example of how to manually retrieve and set the cookies between these two objects, but have been unable to find any. How do I get the cookie

Xamarin WKWebView and Cookies

落花浮王杯 提交于 2020-12-13 03:32:06
问题 I have a Xamarin Forms app that uses cookies to track login status and uses both HTTPRequests and Webviews, so both need to share cookies. With UIWebView this cookies were shared without any extra management on my part; with WKWebView this appears not to be the case. I have been searching for an explanation on how cookies are handled with WKWebView or an example of how to manually retrieve and set the cookies between these two objects, but have been unable to find any. How do I get the cookie

Cordova iOS 6.1.0 How to display images on external screen in WKwebview

你说的曾经没有我的故事 提交于 2020-12-13 03:29:53
问题 I have a Cordova app that uses this plugin (cordova-plugin-wkwebview-external-screen) to display images/media full screen on an external screen via Airplay/HDMI adapter (similar to Apple’s Keynote). All worked smoothly with UIwebview, but I’m having trouble displaying media on my external screen with WKwebview. I’m now using Cordova iOS 6.1.1 (CLI 10.0). I’m using window.WkWebView.convertFilePath() to display media on my primary (control) screen, but neither the converted file url nor the

Adding Javascript to WKWebView

自作多情 提交于 2020-12-12 07:30:13
问题 Hi I know this seems like a super simple question, but I want to add this JS to my WebView: <script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=default&ver=1.3.8'></script> Now obviously I know this is HTML, but I am not sure what to put into 'evaluateJavaScript' in order to use the JS source. Sorry if this isn't very clear - I'm new to both Swift and JS. Thanks! My swift code: func webView(_ webView: WKWebView, didFinish navigation:

Can iframes work in WKWebView with Cordova?

我怕爱的太早我们不能终老 提交于 2020-12-05 10:26:38
问题 According to the Apache Cordova blog, iframes may not work using WKWebView. (https://cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html) I have a Cordova application that is in the App Store that relies quite heavily on iframes. Since UIWebView is likely to be removed in iOS 13, is there a way to get iframes working using WKWebView? Here's what I've done so far: I tried using the Ionic WebView plugin (https://github.com/ionic-team/cordova-plugin-ionic-webview), and although it