25 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
54
views
wkwebview's webView:decidePolicyForNavigationAction:decisionHandler not called after wkwebview's loadrequest was called, can't reproduce locally
My app use wkwebview a lot, and I got a feedback from my app's user that my app's webview sometimes cant load web normally, which means after wkwebview loadrequest, no content was shown, all you can ...
2
votes
1
answer
923
views
SwiftUI Web View unable to go back and forward
I am using WebView for loading the html into view . I added the forward and back button to go back and forward with require code but the problem is when I enter the url and click more link , I do not ...
user avatar
user8705895
0
votes
1
answer
481
views
Don't allow Webview to open hyperlinks correctly
For example, I write as follows, then it works correctly, that is, the content that comes is displayed as it should and when the user clicks the link, it doesn't redirect anywhere.
extension ...
1
vote
1
answer
456
views
How to call a function inside WebView from the menu bar item in SwiftUI?
so I'll keep it short. I have the following function inside my WKNavigationDelegate:
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
DispatchQueue.main.asyncAfter(...
1
vote
0
answers
2k
views
Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" iOS WKwebview WKnavigationdelegate
I ́m working on an app that will show a website. But I'm running into errors when loading the website in app. I ́ts also working perfectly fine on android.
The error:
WebPageProxy::...
1
vote
1
answer
2k
views
WKWebView does not call `didFinish` delegate method
I am implementing a custom WKWebViewClass. The init() is settings the navigationDelegate to self, and starting the load. However, didFinish is never called. I am getting a didFailProvisionalNavigation ...
0
votes
1
answer
986
views
WKWebView in Xamarin.iOS - How to intercept requests for resources such as CSS and JS files?
I load an HTML file into a WKWebView on Xamarin.iOS using webView.LoadHtmlString(). This HTML file references a CSS file and a JS file, for example:
<html>
<head>
<link rel=&...
2
votes
0
answers
350
views
How to intercept (see) all requests of a site written in React in WKWebView for iOS 13 and higher?
I can't intercept all requests, I tried to use WKNavigationDelegate, schemeHandler and some repositories, but nothing is working. Is there any way to get them?
3
votes
1
answer
5k
views
WKWebView Navigation Delegate Not Called
I am having difficulty getting a WKWebview to call its delegate methods, namely the did finish one.
I am attempting something similar to this post generating a pdf report using html loaded into a ...
1
vote
1
answer
5k
views
Completion handler passed to -[webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once
Im getting this error when i press any link.
Completion handler passed to
-[webView:decidePolicyForNavigationAction:decisionHandler:] was called more than once
The link open in safari but the app ...
2
votes
1
answer
2k
views
WKNavigationDelegate method is not called
I'm currently writing a web view application using WKWebView, which should show a custom error page when there is no internet connection while loading a page. I've tried to handle this by calling a ...
0
votes
1
answer
570
views
iOS WKWebView 's didCommitNavigation never called?
In my test code , I open the http://www.qq.com/ with a WKWebView .
And I found that ,there will be 3 delegate methods to be called:
webView:(WKWebView *)webView decidePolicyForNavigationAction:
...
6
votes
3
answers
5k
views
How do I convert a WKScriptMessage.body to a struct?
I set up the WKScriptMessageHandler function userContentController(WKUserContentController, didReceive: WKScriptMessage) to handle JavaScript messages sent to the native app. I know ahead of time that ...
2
votes
1
answer
1k
views
Unit testing WKNavigationDelegate functions swift
I have a UIViewController that implements some WKNavigationDelegate functions, and I want to unit test the logic in these functions. Here's an example:
func webView(_ webView: WKWebView,
...
1
vote
0
answers
900
views
Xamarin.iOS WKWebView and WKNavigationDelegate custom renderer Intranet SharePoint links not working
I am working on one Xamarin forms app and I have created custom renderer to use native web views.
We have some intranet SharePoint URL links in web view content which is not working in iPhone real ...