Questions tagged [wkwebviewconfiguration]
173 questions
1
vote
1 answer
The bug when use WKWebViewConfiguration to set the property selectionGranularity to .Character will get no text selection view
This is my setting for WKWebView:
func setupWebView() -> WKWebView {
let configutation = WKWebViewConfiguration()
configutation.selectionGranularity = .Character
let webView = WKWebView(frame: CGRect(x: 0, y: 20, width:…

Arco
- 614
- 5
- 13
1
vote
2 answers
WKWebView Cookies
I'm using the below mentioned approach to set cookies in a WKWebview:
Can I set the cookies to be used by a WKWebView?
But the cookies that I have set are being duplicated in the AJAX calls. I mean they are being repeated twice.
Here is the code…

Durga Vundavalli
- 1,790
- 22
- 26
1
vote
3 answers
Get Javascript function response in iOS using Swift
I am trying to figure out how to implement JavaScript functions inside my iOS app using swift platform .
I have tried out the example code specified in the…

Mamta Kaundal
- 373
- 1
- 5
- 22
1
vote
1 answer
Why INSPECT ELEMENT or WEB INSPECTOR or developerExtrasEnabled (WkWebView) is not working in iOS While its working for OSX
Here is the code snippet that facilitates the INSPECT ELEMENT in WkWebView
preferences.setValue(true, forKey:"developerExtrasEnabled")
Here is the screenshot of INSPECT ELEMENT working in OSX(right click)
Right click is equivalent to Tap & Hold in…

Durai Amuthan.H
- 31,670
- 10
- 160
- 241
1
vote
2 answers
Issue loading a url in WKWebView using Xcode 7 beta3
I am doing a quick test on WKWebView to evaluate its benefits and drawbacks. But i have found is that i am able to load urls using Xcode 6.4 and iOS 8 but having issues loading the same URL in Xcode 7 beta 3.
This is what i am doing :
-…

Ashutosh
- 5,614
- 13
- 52
- 84
1
vote
1 answer
WKWebview's javascript call returns nil
I'm trying to migrate from using a UIWebview to a WKWebview, and I need to invoke various Javascript functions that live in the webview.
In the UIWebview I have no trouble doing this, but the WKWebview throws an WKErrorDomain Error 4 for any and…

minoue10
- 81
- 1
- 10
0
votes
0 answers
How to open "Whatsapp Web" with WKWebview in Swift?
I want to open WhatsappWeb application with WKWebview with a direction I made from within the application.
I successfully redirect and open WhatsappWeb; but webview is constantly opening in desktop view. Any ideas to convert this to mobile view?
I…

SwiftTry
- 121
- 10
0
votes
1 answer
SwiftUI, WKWebView repetitive permission camera and microphone
WKWebView object, I am opening a URL using the WKWebView object, and I am conducting audio and video communication on that URL by granting camera and microphone permissions. The issue I'm facing is that every time the URL is opened, the browser asks…

Tugrul K
- 13
- 2
0
votes
0 answers
Double camera permission popup from WKWebView
I want to load my web app inside my iOS application using WKWebView. My web app built with react and has a feature to take a photo inside my app. I am using https://github.com/purple-technology/react-camera-pro for the camera libray.
So when opening…

Sonic Master
- 1,238
- 2
- 22
- 36
0
votes
0 answers
How to download images from WKWebView to app not in user gallery iOS swift
I have browser in my app when for which I am using WKWebView. All I want when user long pressed on image I wanna show custom action sheet instead default alert and also when user tapped on download I should be downloaded in app instead of user…

Asim Iftikhar Abbasi
- 547
- 1
- 5
- 16
0
votes
1 answer
How to pass a string inside a class that is inside a struct?
struct WebView: UIViewRepresentable {
@Binding var response: String
func makeUIView(context: Context) -> WKWebView {
let webConfiguration = WKWebViewConfiguration()
let wkController = WKUserContentController()
…

David Leyva Abrahantes
- 13
- 1
- 5
0
votes
0 answers
In WKWebView how do I make it so it fits the margins set within storyboard?
For the webkit I'm having problems setting its size of it. I'm using Swift with Storyboard and I've tried some other solutions but none have worked here:
class ViewController: UIViewController, UIGestureRecognizerDelegate, UIWebViewDelegate,…

Rshelver
- 49
- 5
0
votes
0 answers
PDF File Not Launching on WKWEbView in iOS Swift
I have downloaded pdf file from the Webservices and downloaded into Document Directory as shown…
0
votes
0 answers
We trying to launch the HTML file within WKWebviewer. Launching is working fine in iOS Simulator but NOT working in iOS devices in Swift Language
What we observed is that in the device, the file launches when we placed in Inside application folder (in HomeDirectory) but not when if it placed at out side of folder (in Document Directory).
We are not able to copy the file from document…
0
votes
1 answer
Configuring WKWebView in iOS app with same settings as the WebView counterpart in Android app
My Android app features a WebView that is used for special purposes, so it has to be thoroughly configured.
I set all the following preferences in the activity featuring the WebView:
webView.setVerticalScrollBarEnabled(true);
…

P5music
- 3,197
- 2
- 32
- 81