wkwebviewconfiguration Questions

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

I have simple ViewController with WKWebView configured as follows: webView.configuration.allowsInlineMediaPlayback = true webView.configuration.mediaTypesRequiringUserActionForPlayback = .video ...
Garwood asked 22/9, 2017 at 11:19

6

I have a custom keyboard with a WKWebView in full width and height. I have disabled the scroll via wkWebView!.scrollView.scrollEnabled = false but I still have a strange scroll behavior at double-t...
Anthesis asked 13/10, 2015 at 20:3

14

Solved

For now I am doing like this NSHTTPCookie *cookie; NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (cookie in [storage cookies]) { [storage deleteCookie:cook...
Stidham asked 8/7, 2015 at 10:22

4

Solved

I want to load HTML pages using WkWebView and I want to show the page just after it's finished loading. As long as it's loading I would like to show an activity indicator on an empty View. I creat...
Fumatorium asked 30/3, 2016 at 15:26

2

Solved

In my project I have a view controller where i want to show WKWebView embedded inside another UIView titled viewForEmbeddingWebView that i've created in a storyboard (grey on the picture). I've ...
Frictional asked 20/1, 2017 at 22:15

1

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 ...
Bidarka asked 9/4, 2020 at 14:53

1

I'm trying to copy all loaded data from one WKWebView to a new WKWebView so all content would be loaded when new webView is presented. Any suggestion how to do this or what would be the best approa...
Nodose asked 7/12, 2017 at 16:55

2

Solved

We have recently migrated to WKWebview. We have added a listener for cookie change, to get the updated cookies and update our own store. - (void)cookiesDidChangeInCookieStore:(WKHTTPCookieStore *)...

0

wkdatdetectortypes = .all is not detecting any of the data like phone numbers, address etc. in wkwebview. This is happening only when loading the html string using javascript. If it is done using l...
Merciful asked 5/3, 2019 at 5:11

1

Solved

In my code, I have a part that creates a new WKWebView with a specific WKWebViewConfiguration, which in turn has a WKPreferences reference. All of this then gets added to the view of the applicatio...
Scandalize asked 27/12, 2018 at 2:3

0

I am facing the following problem: In a web interface, file downloads are triggered with an anchor tag, like this: <a href="/bla/blabla" download>..</a> While Safari browser can ha...
Martensite asked 21/2, 2018 at 10:14

2

I want to inject a script using WKWebview API. For some reason it isn't working and I can't figure it out. I've tried debugging in Safari developer console and I can't find the JavaScript code in t...
Vituline asked 5/10, 2014 at 13:17

1

Solved

WKWebViewConfiguration: mediaPlaybackRequiresUserAction has been deprecated since iOS 9 In WKWebViewConfiguration: @available(iOS, introduced: 8.0, deprecated: 9.0) open var mediaPlaybackRequir...
Alpers asked 26/9, 2017 at 10:13

2

Solved

I am trying to inject a custom WebKit script message handler. My controller is correctly loaded and the view as well. However, on the JS side (from the Safari console), window.webkit.messageHandler...
Camenae asked 12/1, 2016 at 0:34

2

Solved

I am trying to call an existent function from a remote site in a WKWebview: function addtext (text) { jQuery("#webviewtest").html(text); } With: [self.WebView evaluateJavaScript:@"addtext(\"Th...

2

Solved

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 mea...
Adz asked 16/6, 2016 at 10:42

0

I want to support third-party cookies in an iOS application using WKWebView. Is there any way to support third-party cookies when the user has blocked all cookies in Safari's settings (Settings -> ...
Elise asked 18/11, 2015 at 18:30

1

Solved

I am using WKUIDelegate this function to handle javascript alert -(void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame co...
Lazybones asked 1/10, 2015 at 15:50

2

Solved

I'm trying to capture the window.print() javascript call from a WKWebView with my app to actually show a print dialog and allow them to print from a button presented on the page (instead of a butto...
Hypo asked 16/11, 2014 at 9:31
1

© 2022 - 2024 — McMap. All rights reserved.