Skip to main content

All Questions

Tagged with
1 vote
3 answers
2k views

Invoke a swift function from WKWebView

I am rendering a webpage in WKWebView, and in that webpage, i need to override one button action with a native swift code.Like in webpage on click of a button it navigates to another page, but in ...
Tinjzz's user avatar
  • 97
-1 votes
1 answer
241 views

iOS13 and 14, WebView didFinish not work. it not call when comeback from second page after call goBack()

iOS13 and 14, WebView didFinish not work. it not call when comeback from second page after call goBack() Step open webview click some url and then redirect to second page press back by call goBack() ...
ThePinyo's user avatar
2 votes
1 answer
2k views

iOS 13 Swift 5 wkwebview - display image from documents directory into wkwebview real device

I have an app with downloaded images to be displayed in local html in WKWEBVIEW. Everything is working fine but it is not showing image on iPhone device the html is "\n<img src="images/...
iMinion's user avatar
  • 159
1 vote
1 answer
1k views

CORS | Request header field Authorization is not allowed by Access-Control-Allow-Headers ionic | IOS 13 preflight response

I have migrate my IOS ionic v1 app to IOS 13 and xcode 11.5. when I install the app and try to login first time then I am able to login successfully. But when I kill the app and try to open the app ...
Pritish's user avatar
  • 2,194
-1 votes
1 answer
467 views

How to upload file (.pdf) using WK WebView in Swift?

Using WK WebView, I am not able to select .pdf below iOS 13. .pdf files are selectable only in iOS 13+ devices. So, how to manipulate with file selection choices? What delegate method of WK WebView ...
Anuranjan Bose's user avatar
2 votes
0 answers
118 views

using WKWebView plugin in Cordova project does not allow Keyboard to show on focus for iOS 13

I was using UIWebView before in my Cordova project and it used to show the keyboard on focus. Now as UIWebView is deprecated by Apple, I am using WKWebView instead. The Keyboard is not showing on ...
user13790620's user avatar
1 vote
1 answer
464 views

iOS WKWebView won't access iPhone XR camera

I created an iOS WebView app and wanted to display the following website: https://qrcodescan.in/ within this app through WkWebView in fullscreen. Opening it up on safari works perfectly fine and ...
raspberry's user avatar
0 votes
0 answers
468 views

WKWebview - IOS 13 : App is not detecting location?

I am using WKwebview for my PWA website which do ask for location access by using HTML5 Geolocation APIs. Everything is working fine in WKwebview, media is accessible, JS is working, But my app is not ...
Shivam Shukla's user avatar
0 votes
1 answer
397 views

Why is my Hybrid App WKWebView unexpectedly reloading

Since upgrading to IOS 13, the WKWebView in my hybrid app unexpectedly reloads after invoking the camera app. The app is also requesting location at the same time, so I wondered if this was somehow ...
Steve Brooker's user avatar
1 vote
1 answer
346 views

WKWebView loading embedded movies results in full screen play

I have a WKWebView in my app that calls a site and loads movie files that all require HTTP Basic auth. I've implemented public func webView(_: WKWebView, didReceive: URLAuthenticationChallenge, ...
Martin's user avatar
  • 804
1 vote
0 answers
1k views

WKWebView takeSnapshot does not work on iOS 13

I need to take a screenshot of WKWebView while app in Background. But on iOS13 method takeSnapshotWithConfiguration:completionHandler: of WKWebView does not work. completionHandler never fires when ...
Yanis's user avatar
  • 177
0 votes
0 answers
409 views

Can delegate change a URL during WKWebView navigation?

The WKWebView has a navigationDelegate property. That delegate can allow or deny navigation actions (eg, the user following a link) by implementing: func webView(_ webView: WKWebView, ...
Rob N's user avatar
  • 15.9k
2 votes
1 answer
704 views

WKWebView Request permission for DeviceMotion and DeviceOrientation is called every time app launches

Is there a way to only request DeviceMotion and DeviceOrientation permissions once, not every time the app launches. I am requesting permissions using webView.evaluateJavaScript("DeviceMotionEvent....
Mohamed Farid's user avatar
2 votes
1 answer
2k views

iOS 13 iPad user agent problem in webview

I have a piece of code that had set the user agent for all of my web views: dispatch_once(&onceToken, ^{ { __block WKWebView *webView = [[WKWebView alloc] initWithFrame:[[...
Doron Yakovlev Golani's user avatar
1 vote
1 answer
569 views

iOS WKWebView loading PDF data in DarkMode has black background around PDF document

After update to iOS 13 I have experienced problem with loading PDF document into WKWebView. PDF document was displayed on light gray background in Light Mode. But now in iOS 13 I can change system ...
Michał Ziobro's user avatar

15 30 50 per page