Questions tagged [wkwebviewconfiguration]

173 questions
1
vote
1 answer

Disable date actions in iOS WKWebView

I have a time slot picker web component on a page that is shown with WKWebView in an iOS app. iOS recognises that the given text is a date an offers actions when you click on the date. Is there any way to disable that? Either by changing the HTML…
Ion
  • 351
  • 3
  • 19
1
vote
2 answers

How to get headers from WKWbView finish loads

I am using WKWebView in app & i am looking for getting all headers from wkwebview in finish loads method webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { Just like in UIWebView func webViewDidFinishLoad(_ webView: UIWebView) { …
Amit
  • 556
  • 1
  • 7
  • 24
1
vote
1 answer

How do I use WKWebView on my second scene

I have been trying to make a basic app for just a few days and I would like the Webkit View only to popup when a button is pressed. I have put the code I was using but it just showed the site and nothing else. class ViewController: UIViewController…
1
vote
1 answer

WKWebViews (multiple) - sharing cookies, localStorage in Swift

I'm having such an irritating issue. I have a UITabBar application with 5 tab bar buttons. Each hooked up to a viewController: FirstViewController, SecondViewController etc. In each of the 5 ViewControllers I have a WKWebView. The 5 WKWebViews…
Dawie
  • 15
  • 4
1
vote
1 answer

iOS -WKWebView - load content from local host directory/files (.js and assets)

I want to run a local HTML file in a WKWebView. Then I want to use some local files (.js and assets) from a local directory located in the app bundle or from a path in the app documents directory Then serve them on my localHost. It looks like I…
1
vote
1 answer

What is suppressesIncrementalRendering doing?

I'm using the newest version of Xcode and Swift. I was googling around to make my KWWebView even faster and found the following: webConfiguration.suppressesIncrementalRendering = true Documentation says the following: A Boolean value indicating…
David
  • 2,898
  • 3
  • 21
  • 57
1
vote
1 answer

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 before I can use it I get the message regarding…
raspberry
  • 69
  • 1
  • 7
1
vote
0 answers

WKWebView: Pefetching assets to improve load time

We are trying to create a WKWebView in the background on application launch so that we can improve the speed and load times of WKWebViews when the user accesses a feature/URL later on. Basically trying to pre-fill the local cache with a few larger…
poundev23
  • 807
  • 3
  • 11
  • 18
1
vote
1 answer

Manipulate paste content in WKWebView

I need to manipulate the text that is pasted into a WKWebView (from any source) running an asynchronous operation that can take some time. My original idea was to use Javascript and the WKWebView configuration in order to get the onpaste…
Kappe
  • 9,217
  • 2
  • 29
  • 41
1
vote
0 answers

iOS WKWebView set value for zoom out

coming to the point, I have one URL load in WKWebView, loading URL contains a single SVG image large size. I am able to zoom in the image but could not able to zoom out. let's say I have 1400 * 1200 size image that will not fit into screen. I can…
Kushal Maniyar
  • 846
  • 1
  • 8
  • 26
1
vote
0 answers

unwrapped optional and non-optional value yields "Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value"

private var webView: WKWebView? override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) webView = WKWebView(frame: .zero) guard let webView = webView else { return } …
michaeldebo
  • 3,065
  • 4
  • 14
  • 20
1
vote
0 answers

WKWebView not detecting URL is different

I have 3 URL's I open within my app using a WKWebView. These URL's are used to trigger an SSO into another product, using a cookie set by my app on login. They look as…
Tim J
  • 1,211
  • 1
  • 14
  • 31
1
vote
0 answers

How to identify download in wkwebview

I am working on WKWebView and want to support file downloading and displaying in Quick Look. Below is the format of html tag < a href=https://abc/p/docs/DownloadTest.xlsx>DownloadTest.xlsx< /a>" In Android: The above code is working fine in…
iOS_Developer
  • 495
  • 4
  • 20
1
vote
1 answer

Opening PDF files in WKWebView objective c

I'm having troubles visualizing the content of pdf files using WKWebView and objective c. Sorry, I'm not familiar with Swift. Here is the code, but it shows a blank page and it returns the following error: Error Domain=NSCocoaErrorDomain Code=261…
jeddi
  • 651
  • 1
  • 12
  • 21
1
vote
1 answer

How to get the WKWebView resource files

How to access WKWebView asset folder. I want to get one image form WKWebView asset folder. When web is loaded. Is it possible to access asset folder of WKWebView like accessing cookies. I tried WKWebsiteDataStore and…