-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API to access WKWebViewConfiguration #977
Comments
That would be a very useful feature! |
Any update on if/when this will gonna be supported? |
Is there any progress in developing this feature? |
Bump, exact same need |
Due to the volunteer nature of Apache projects, we can't really provide any timelines. AFAIK no one is looking into this feature, but with that being said, if there is a need for this feature (which there appears to be), anybody willing is free to develop and prepare a PR. A PR will likely be best way to discuss potential solutions since reviewers can see the actual code changes. Additionally if you have any questions regarding developing this feature, you may ask our Slack Community or subscribe to our Dev Mailing List. |
Looks like this might actually be resolved by #1050 |
I haven't tried this myself yet, but looks like that would solve my need to set scheme handlers. There is one additional need that emerged after creating this issue that I also resolved with my workaround of subclassing |
@jasonbekolay |
@GymotgM It's not been pushed AFAIK |
@breautek |
@GymotgM Cordova iOS has used |
Feature Request - API to access WKWebViewConfiguration
Motivation Behind Feature
Our team is upgrading from Cordova 5 to 6 and migrating from
UIWebView
toWKWebView
. Our app used to useNSURLProtocol
subclasses to handle certain requests from the UIWebView. This does not work withWKWebView
. The new approach is to useWKURLSchemeHandler
instances to handle requests made with a custom scheme. In order to do this, we need to register our scheme handlers with theWKWebViewConfiguration
for the WebView. Right now, there does not seem to be a way to do this with public API. We also need to set thewebsiteDataStore
on theWKWebViewConfiguration
in order to set cookies for the WebView.Feature Description
One option: Make
CDVWebViewEngine
a public class that class that can be extended. That way we can overridecreateConfigurationFromSettings:
and accessWKWebViewConfiguration
Also open to any other option that provides access to
WKWebViewConfiguration
Alternatives or Workarounds
Our current workaround is to use a
post_install
action in CocoaPods movesCDVWebViewEngine.h
andCDVWebViewUIDelegate.h
from private to public, then extendingCDVWebViewEngine
CC: @lukemelia
The text was updated successfully, but these errors were encountered: