wilddylan / wkwebviewwithurlprotocol Goto Github PK
View Code? Open in Web Editor NEWWKWebView With URLProtocol
License: MIT License
WKWebView With URLProtocol
License: MIT License
If you target iOS 11, you can now use WKURLSchemeHandler to avoid this trick!
How? WKURLSchemeHandler
doesn't work with http/https.
你好 拦截后 ,post请求的body是空的
Getting a few issues with this Pod on iOS 11 public beta 2 running Xcode 9 beta 3.
Worked fine on Xcode 8 and iOS 10
Requests are now becoming malformed for some reason.
Some pages appear to be loading correctly but then other pages YouTube always return errors
It looks like the selectors still exists on iOS 11 for WKWebView and the browsing controller's private functions
Here are some new debugger messages I get when the custom protocol is implemented.
2017-07-19 18:50:44.098455-0400 Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2017-07-19 18:50:44.101128-0400 Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service
2017-07-19 18:50:44.363638-0400 [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1559 received sct extension length is less than sct data length
2017-07-19 18:50:44.933117-0400 [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1559 received sct extension length is less than sct data length
2017-07-19 18:50:45.476259-0400 [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1559 received sct extension length is less than sct data length
2017-07-19 18:50:45.775361-0400 [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1559 received sct extension length is less than sct data length
After putting in these files in my project, WKWebView is refreshing on every close of dialog or modal windows. When I comment out the registerSchemeClass call, it works fine. So just wanted to know if someone else had faced this issue, and if yes, how was it solved?
Hello! I am new for OC... Is it possible to check url like "www.google.com" but not scheme like "http"?
request body is missing after you register the scheme and make a post request on that scheme,
It's maybe a bug of webkit, discussion here:
https://bugs.webkit.org/show_bug.cgi?id=137299
and maybe here:
https://bugs.webkit.org/show_bug.cgi?id=140188
but apparently using of SPI here cannot make what you want.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.