18 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
319
views
iOS 26 web page with script is terminated on custom scheme WKURLSchemeHandler
Update (06.08.2025): Fixed in iOS beta 5
Something has changed in iOS 26 (tested on beta 4) and now if custom scheme is used and web page contains script element then WebKit is terminated with ...
0
votes
1
answer
375
views
iOS WKWebView - WKURLSchemeHandler Crash On didReceiveResponse(EXC_BAD_ACCESS)
I use WKURLSchemeHandler to handle some internal request (like home page, web page restore, etc). Sometimes when I call urlSchemeTask.didReceive(urlResponse), app will crash with EXC_BAD_ACCESS.
Here ...
3
votes
0
answers
487
views
WKURLSchemeHandler and fetch requests with custom scheme
I have an application that displays some HTML content with a WKWebView.
I'm using a WKURLSchemeHandler attached to the webview configuration to respond to requests for local resources.
This works as ...
1
vote
1
answer
413
views
How to fix status code 0 in fetch and XMLHttpRequest for response created by WKURLSchemeHandler
I need to embed html5 games in my app. (Embed into binary, in a such way that i don't need internet connection).
I open index.html with loadHTMLString(htmlContentString, baseURL: "myschemename:///...
3
votes
1
answer
2k
views
WKURLSchemeHandler NSInternalInconsistencyException with Task cancellation
I have a problem with WKURLSchemeHandler and Task cancellation and provided an example implementation below.
The problem is, that sometimes right after webView(_:stop:) is called (and "Stopping ...
0
votes
1
answer
558
views
WKURLSchemeHandler crashed on ios13,but ios12 or ios13 later it's works fine
I reference resources
enter image description here
This is my crash stack
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x18)
frame #0: 0x00000001bbb513c4 ...
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?
2
votes
2
answers
4k
views
How to enable WKURLSchemeHandler to do work off main thread?
I am trying to get WKURLSchemeHandler to serve video files for when a WebView uses a custom url scheme. I realize that didReceive(data) can be called multiple times so I have figured out how to load ...
2
votes
0
answers
213
views
WKURLSchemeHandler and FormData
I develop hybrid application.
When JS send XMLHTTPRequest with FormData, App WKURLSchemeHandler custom class receives WKURLSchemeTask with request, but request has no HTTPBody or HTTPBodyStream. Both ...
3
votes
1
answer
4k
views
iOS - WKURLSchemeHandler not called on custom scheme
I want to use WKWebView and WKURLSchemeHandler to catch some links with custom schemes. To understand how it works, I've made a simple project (in Objective-C, sorry) with a local html file containing ...
1
vote
0
answers
180
views
WKURLSchemeHandler delegate doesn't get called during evaluateJavascript
I am loading local html file which will load first and then I will have to load an image that is also available locally only after the html is loaded fully. So, I am setting src for the image tag ...
0
votes
1
answer
883
views
How to implement a native WKURLSchemeHandler in cordova-ios 6.1.0
I am working on a cordova ios (6.1.0) project and i want to implement a native WKURLSchemeHandler
to intercept the custom scheme handling to solve my cors problems.
In detail I want to do something ...
2
votes
0
answers
938
views
How to replace WKWebView response with internal resource files?
I have a WKWebView that present an HTML file from the project resource files.
Along with the resource files there are CSS and JavaScript files for the web view to use.
Side note:
These web files are ...
0
votes
0
answers
1k
views
How to load local CSS in a remote web page in WKWebView?
Updated question
I am loading a remote page that I control into a WKWebview in my app and customizing it by loading local CSS and font files. At page load, in webView:didFinishNavigation:, I am ...
3
votes
0
answers
765
views
WKWebView's WKUrlSchemeHandler and Cookies with the Secure property
Since iOS 11, you could use WKURLSchemeHandler with WKWebView:
A protocol for loading resources with URL schemes that WebKit doesn't
know how to handle.
If you used a custom-scheme - let's say ...