Questions tagged [wkwebview]

A WKWebView object displays interactive web content. It is provided by Apple's WebKit which is available for macOS, iOS and tvOS as well.

A WKWebView object displays interactive web content. It is provided by Apple's Open Source Project WebKit and is available for macOS, iOS and tvOS as well.

Links:

3852 questions
2
votes
1 answer

WkWebView can't open keyboard for input field

I'm trying to make a WkWebView open a keyboard for tel text input programatically after the WkWebView sends the contained webpage a javascript function call. After this call activates a certain input (id: activeElementToShowKeyboard), I would like…
hawkeyecoder
  • 571
  • 4
  • 10
2
votes
1 answer

Strange behavior with WKWebView's loadHTMLString method. Images are not loading sometimes

I am working on a mac app project.Using WKWebView's loadHTMLString method,I am able to construct a web page view,it works well except for the image loading part. For example: NSString *string1 = @"
Li Fumin
  • 1,383
  • 2
  • 15
  • 31
2
votes
0 answers

How to use NSURLSession and loadHTMLString to load a website in a webView with CSS and JS?

I am trying to preload websites, but I'm having trouble loading the CSS with loadHTMLString. The webView loaded from loadHTMLString looks like the CSS is missing from some parts. How do I make it so that in my NSURLSession, the CSS and HTML and…
user3796209
  • 449
  • 6
  • 18
2
votes
2 answers

calling .focus() on in WKWebView causes keyboard lag

I'm building an app in HTML5 and Javascript using WKWebView. I have a very plain text input that I want to call focus() on manually via javascript. It does work, the keyboard pops up and there is a cursor in the input however the iOS keyboard is…
Alex Fox
  • 1,175
  • 2
  • 15
  • 27
2
votes
2 answers

Creating custom ORKStep with WKWebView

I'm relatively new to iOS development, and currently using Swift to develop a prototype ResearchKit app. One of the requirements is to embed a WKWebView in an ORKTask consisting of three steps: ORKQuestionStep, ORKWebViewStep, ORKCompletionStep. I…
tensormit
  • 79
  • 4
2
votes
1 answer

WKWebView error: "The requested URL was not found on this server"

in xcode 7 beta3 When I use object-c is all right, but when I use swift I get an error: "The requested URL was not found on this server", Why? here is code: #import "ViewController.h" #import @interface ViewController () …
vvw
  • 31
  • 1
  • 2
2
votes
1 answer

WKWebView download zip file from an indirect link

I am trying to capture the downloading of a zip file from a WKWebView in iOS. After logging in, going to this link, requesting the archive and clicking the download button, the zip file is not downloaded. However, the WKWebView does display the file…
Noah Labhart
  • 157
  • 4
  • 18
2
votes
4 answers

WKWebView: Is it possible to preload multiple URLs?

Just migrated an app over to WKWebView and was wondering if there is any possible way to 'preload' multiple URLs, but only display one at a time? I have a list of 5 URLs. I already know that I will be shown at some point in time, and I want to speed…
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146
2
votes
0 answers

OSX, iOS WebView: how to perform client identity authentication like safari

How to perform authentication with a server which demands client identity certificate from OSX keychain. I see safari displaying a dialog [immage below] with a list of certificates that user can select. How can this be achieved inside an OSX app?…
ZestyZest
  • 911
  • 13
  • 27
2
votes
1 answer

Get Video url embedded in web page using WKWebView

I used UIWebView to get the video url embedded in web page using AVPlayerItemBecameCurrentNotification. Due to memory pressure issue I used WKWebView instead of UIWebView, which is far better memory efficient than UIWebView. But I did not get a way…
Aswin
  • 91
  • 7
2
votes
0 answers

Stop wkWebView sound when dismissing containing viewController

In my view controller i have a WKWebView which play video with sound When i dismiss the the view controller using: self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil) The video sounf still play. How can i stop it?
Michael A
  • 5,770
  • 16
  • 75
  • 127
2
votes
0 answers

How to deselect link on wkwebview because long press after customized action sheet pop up?

WKWebView have native action sheet pop up when long press any link on web page, if we long press on any link, when menu action sheet pop up, the pressed link will be deselected automatically. But I replaced native action sheet with more sharing…
Andy_24
  • 1,353
  • 2
  • 12
  • 20
2
votes
2 answers

iOS 8 didReceiveAuthenticationChallenge not getting called for WKWebView Objective C

I am new to iOS development. I have a project where I have to use WKWebView instead of UIWebView. Its a simple webpage with javascript to Objective-C and other way round integration. It is working fine except when I try to open a server with…
user2212736
  • 93
  • 1
  • 7
2
votes
1 answer

How to use WkWebView additem to backforwardList

Im trying to add a url to the back forward list of my WkWebView but I can't seem to find how it can be done. Apple doc shows this link WebBackForwardList and I've tried importing WebKit.h but I can't find the method to add the item: -…
Ken Chan
  • 21
  • 1
  • 3
2
votes
1 answer

WKWebView programmatically reload trigger didFailProvisionalNavigation

A UISplitViewController base App, master is UITableViewController, detail is UIViewController. When UITableViewController cell taps, NSNotificationCenter post a notification, reload the WKWebView in detailViewController. Reload successlly, but…
Shinren Pan
  • 49
  • 1
  • 4
1 2 3
99
100