I have looked around in cordova-ios and found a way to switch the webview at runtime. As far as I understood how cordova-ios works it, is enough to set the name of the new webview and call the right method to reload the webview.
We have built a plugin which does that for our use case: https://github.com/GEDYSIntraWare/cordova-plugin-webview-switch Now I can call the plugins Javascript function and the app reloads with the webview I want to. This works perfectly for now. Do you see any chance to integrate parts of this into cordova-ios? If this sounds feasible, I would be glad to contribute this. I just need some feedback if this approach makes sense and where to implement the changes. Changing the webview is a dangerous action because the apps restarts completely and open plugin callbacks may run into exceptions which can cause crashes. Where do you to put JS code for platform code? I am available to talk more about that via e-mail or the Cordova Slack. Please let me know who is the right person to talk to. I would love to see this feature in cordova-ios. Best regards Niklas julio cesar sanchez – Tue, 8. January 2019 19:35 > As far as I know, WKWebView was going to be integrated into cordova-ios, > and as I understand it, it's not going to be a real plugin, but a method in > cordova-ios to switch the webview at runtime. > > Looking at cordova-ios repo I couldn't find anything about the WKWebView > integration, so looks like nobody is working on it yet. (it was a quick > look, so maybe I missed it) > > El mar., 8 ene. 2019 a las 17:40, Niklas Merz (<niklasm...@linux.com>) > escribió: > > > Hi everyone, > > > > I am working on implementing WKWebView into our app right now. This blog > > post announced changes to cordova-ios and a "bridge" plugin: > > cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html > > > > Is this plugin already in development? Can I test it or contribute to > > development? An option to switch between WebViewEngines in runtime would > > make stuff easier for this app. > > > > I`m looking forward helping. > > > > Best regards > > > > Niklas > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org > > For additional commands, e-mail: dev-h...@cordova.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org