Questions tagged [wkwebviewconfiguration]
173 questions
0
votes
1 answer
How to clear already registered urlSchemeHandler from WKWebViewConfiguration
I have added custom urlSchemeHandler for my WKWebViewConfiguration. I am maintaining a common WKWebViewConfiguration instance across the app and is being used in multiple places. If I try to add a scheme and if it is already added the app is…

Vinay Kiran
- 349
- 5
- 16
0
votes
1 answer
How to run function before WKWebView finishes loading?
I'm creating a Swift iOS project that has multiple WKWebViews that display external websites. Some of these websites I don't have administrative access to, so I use some code to hide a div class. This works fine, but the element is hidden AFTER the…

Aaron
- 358
- 2
- 16
0
votes
1 answer
Don't show ImagePicker in WKWebView iOS
I would like to have a WKWebView that does not display the ImagePicker but uses an image I have selected. Is something like this possible?

Jony
- 111
- 1
- 1
- 5
0
votes
0 answers
After login new page is not loading in WKWebView
I am using WKWebView in swift4 Xcode 10. I am loading a site and user is supposed to logged in which will take him to next page which is a dashboard.
The url is perfectly working in Safari. User can easily logged in but when I load the url in…

Muhammad Nayab
- 1,612
- 14
- 14
0
votes
1 answer
WKWebView in iOS and Mac OS Problems Not working in Mac OS; Why?
I open a default cocoa app; one for Mac OS and one for iOS using Storyboards. I drag a Web View (WKWebView) into the default view supplied by Storyboard. I modify the default ViewController.swift file so that for ios it reads
import UIKit
import…

JVSIP
- 381
- 1
- 9
0
votes
3 answers
How to use same cookie on different WKWebViews
i need to use same configuration (cookie) on the second WebView after the user is authorized on first WebView. On simulator it's work well, but on device is not stable.
class auth: UIViewController, WKNavigationDelegate, UIWebViewDelegate {
private…

Eugeny
- 308
- 4
- 12
0
votes
1 answer
WKWebView property "plugInsEnabled": where is it good for?
The WKWebView control has a property plugInsEnabled as part of the preferences of the configuration property of the said control. The documentation states:
A Boolean value indicating whether plug-ins are enabled.
Apparently the documentalist…

Ely
- 8,259
- 1
- 54
- 67
0
votes
1 answer
evaluateJavaScript() with Error Domain=NSCocoaErrorDomain Code=3840 just on iPhone 5 - iOS 10.3.3
I want ti evaluateJavaScript() which is a function from WKWebView I get the error with detail is:
Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set."…

Huy Nguyen
- 77
- 1
- 12
0
votes
1 answer
Use the same WKWebView in other classes
Hi I'm currently using WKWebView in my Swift 3 project.
Is it possible to keep the same WKWebView in another class, so that you are running one main WKWebView in different classes?
I've tried to do this with WKProcessPool and WKWebsiteDataStorage,…

Stef
- 1,183
- 1
- 9
- 12
0
votes
1 answer
iOS Objective-C LocalStore in WKWebView
I found this SO that gives an explanation of how to set local storage using javascript.
I'm trying to translate it from Swift to Objective-C. For some reason it's throwing a fit at me like I'm missing a bracket but I can't seem to figure it out. Any…

Tom Hammond
- 5,842
- 12
- 52
- 95
0
votes
1 answer
Pass info from Angular4 (WKWebView) to Swift
Hi I have a web app that I am wrapping into a WKWebView to distribute through Google Play and App Store.
In order to get this working just the way I want, I need to be able to pass some text strings between Angular and Swift.
It is the passing of…

lundzern
- 417
- 3
- 11
0
votes
1 answer
WKWebView autocomplete suggestions in UITextField
I am using a WKWebview to display web page and have a UITextField where the user can enter the URL they wish to navigate to (in-app browser of sorts). As the user is typing, I would like to display a list of possibilities (i.e. popular sites). Are…

David Tsenter
- 125
- 1
- 1
- 6
0
votes
1 answer
Cannot use JavaScript to open links in mobile Safari when called from WKWebView
This post and this post addresses the problem of using JavaScript to open WKWebView links in mobile Safari, but for some reason, the solutions provided don't work.
The code below incorporates elements of different solutions, yet still the link does…

Crashalot
- 33,605
- 61
- 269
- 439
0
votes
0 answers
WKWebView with Basic Authentication in Swift complete example
I have been trying to put together an example of a WKWebView with a site that authenticates with Basic Auth. I want to use swift if possible. The examples that use the challenge with
URLCredential(user: user, password: password, persistence:…

J Wagner
- 19
- 4
0
votes
1 answer
Update WKWebView Cookie Values
My Requirement is to update the cookies that are set to WKWebView. I'm able to update the cookies in NSHTTPCookieStorage, but the same cookies are not reflected to WKWebView cookies(The update values are present in NSHTTPCookieStorage but are not…

Durga Vundavalli
- 1,790
- 22
- 26