What an interesting rabbit hole: xmlHttpRequest() in WKWebView looks at the URLs (even custom schemes) and returns status 0, no data for anything that isn’t the main page’s scheme or seems to have another server.

So if you’re doing a custom URL scheme to communicate with a web view, you never get called.