wkwebview Questions

2

Solved

WKWebView crashes while trying to evaluate JavaScript on Xcode 14.1, using Swift, tested on iOS but same behaviour should be on macOS. I made a vastly simplified example to try to find a solution, ...
Pentalpha asked 8/11, 2022 at 16:25

0

I am facing a strange issue where in cookie sync fails(Few cookies drop) after upgrading to iOS 17 on some of the devices. How Cookie Sync works in Our App? Authentication token is received via he...
Ignatzia asked 12/10, 2023 at 11:31

15

Any one worked with WKWebView and tried to clear cache? If yes, how to do it? Any example? P.S. : Normal NSURLCache is not working.
Marcin asked 24/11, 2014 at 12:39

5

Anybody please tell me how to download files in iOS wkwebview. I have created an iOS webview app. In the page I have loaded It has several download options but when I click download nothing happene...
Etana asked 28/11, 2019 at 7:4

2

Solved

TL;DR: I've got an iOS (Swift) project with a WKWebView. I want to add a request header to ALL outgoing requests (html, images, scripts, stylesheets, etc.) within this WKWebView. I can't find out h...
Foison asked 16/9, 2016 at 19:8

2

Solved

I've made a fresh mac app project with the following code in the ViewController. import Cocoa import WebKit class ViewController: NSViewController { var loginWebView: WKWebView! override func...
Britney asked 24/11, 2017 at 3:35

2

Solved

In my app I’m using a WKWebView which loads webpages with static content. I want to know the height of the contentSize as soon as the webpage is fully rendered in the WKWebView. So I thought I co...
Stillas asked 29/5, 2018 at 7:35

5

Solved

All I want to do is make the most basic macOS / OS X app that just shows a WKWebView... import UIKit import WebKit class ViewController: UIViewController, WKUIDelegate { var webView: WKWebView! o...
Gardening asked 24/10, 2017 at 3:48

4

When I'm searching google and click on Etsy.com for exmaple, WKWebView redirect me to Etsy app installed on my iPhone. How can I disable this behavior? I want WKWebView to redirect me to etsy.com m...
Dendrochronology asked 7/5, 2016 at 9:4

3

Solved

I'd like to know wether it's possible to detect a movie being played in the WKWebView? Additionally I'd like to know the exact URL of the opened stream?
Despondent asked 3/5, 2016 at 6:16

2

Environment: MacOS: Monterey 12.6.1 XCode: 14.2 iOS: 16.4.1 Safari : 16.2 (17614.3.7.1.7, 17614) Question: I want to debug my webview, and I open safari and nothing in the my device inspecto...
Geyserite asked 10/5, 2023 at 8:4

4

We called a function in iOS from javascript i.e var data = webkit.messageHandlers.callbackHandler.postMessage("Hello from JavaScript"); I want to assign returned value in data variable from call...
Venezuela asked 19/7, 2017 at 14:27

2

Solved

I have been working on my appliance years now, and as always using the Safari's Web Inspector. But today my Mac's Safari Inspector won't show/see anymore my App's webview, anyone have a clue about ...
Cherilyncherilynn asked 26/4, 2023 at 19:12

2

Solved

I have a mobile-optimized web app that makes use of getUserMedia to access webcam and mic resources. I'm wrapping this app in a WKWebView as I want to offer a native app experience. I'm aware that...
Subjectify asked 11/5, 2017 at 13:9

1

Solved

I have an iOS application that is attempting to run a HTTP web server in a thread, with a UI that consists of a single WKWebView pointed at that web server (i.e., an "Electron"-style app)...
Cowberry asked 16/10, 2022 at 15:20

6

I have developed an app which shows a web page using WKWebView in Swift. I need to disable the user selection and the callout (because the web loads a graph) and I don't find any way to do this wit...
Twister asked 26/1, 2018 at 18:49

3

I have a WKWebView to load a website that has a custom url scheme (mycustomurl://) implemented with WKURLScheme, which the website will call using GET. Everything works as expected when the website...
Reisch asked 13/4, 2018 at 22:49

1

I have implemented Single Sign-On using node js in a Apache server. If I access any web application in the server, it would redirect to the sign-in page and after providing the credential, it is na...
Zachary asked 25/7, 2019 at 10:32

8

I'm trying to load a HTTPS url with an self-signed certificate in a WKWebView for iOS 8 and it keeps failing. The workaround used with UIWebView (using setAllowsAnyHTTPSCertificate from NSUrlReques...
Otherness asked 24/11, 2014 at 8:24

5

I am trying to load ApplePay popup on WKWebView. I did my initial leg work by implementing it but it does not load up. Is there something extra I need to implement to make it work ? There is no pr...
Chafer asked 25/5, 2017 at 21:48

5

Solved

I'm looking for a way to show the inspector for a WKWebView inside my Mac app. With WebKit1 and WebView it was easy to show the inspector inside your Mac app, by just setting WebKitDeveloperExtras...
Capful asked 8/8, 2014 at 9:26

3

I'm sending a value to javascript function and get a result. However, I'm getting "Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLoca...
Tannenbaum asked 19/3, 2017 at 13:57

1

Solved

I got it to work on Android, the WebViewWidget displays correctly with the html content, no problem. For iOS it just displays blank/white. I tried what I have seen suggested by people all over the ...
Sliver asked 15/2, 2023 at 18:12

7

Solved

This question is about printing ALL content (including off screen content) of WKWebView. Currently (still, as of iOS 17 or macOS 14.4) there is NO working solution and none of the supposed solution...
Overlay asked 24/10, 2015 at 14:30

14

Solved

while getting cookies from UIWebView seems straightforward by using NSHTTPCookieStorage.sharedHTTPCookieStorage(), it seems WKWebView stores the cookies somewhere else. I did some research, and I ...
Gittel asked 15/10, 2015 at 19:9

© 2022 - 2024 — McMap. All rights reserved.