Is it possible to adjust capacitors webview configuration? #4196
-
I was looking for native methods to set some configuration on capacitors webview i.e. https://developer.apple.com/documentation/webkit/wkwebviewconfiguration#//apple_ref/doc/c_ref/WKWebViewConfiguration in ios and equivalent in android. But I don't see anything atm. I'm not looking for a plugin that exposes this to js, rather something I can do in my AppDelegate before app initis. Is this exposed somehow in capacitor 2 / 3? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In Capacitor 3 you can subclass |
Beta Was this translation helpful? Give feedback.
In Capacitor 3 you can subclass
CAPBridgeViewController
and overridewebViewConfiguration(for:)
to modify the configuration before the web view gets created.