Thanks for the info.

The discussion there is about a bridge that sits between the app and
webview. The webviews I tested (Cordova CDVUIWebview and WKWebview and
Ionics WKWebview which has the same class name) implement the interface
CDVWebViewEngineProtocol. I can´t get a feeling what needs to be done to
get this bridge/proxy working smoothly. I just found a (simple/dirty)
way to force Cordova to load a webview at runtime, because we need this
for compatibility reasons.

Cookies are still a not quite ready, but workarounds exists.

The Ionic plugin switched from the webserver solution to serving from a
custom protocol just a few days ago. This works quite well for CORS.

Am 12.01.19 um 00:06 schrieb Jesse:
> Previous discussion leading up to that blog post is here:
> https://markmail.org/message/fxe6q6nnernvr6h6
>
>
>
> @purplecabbage
> risingj.com
>
>
> On Fri, Jan 11, 2019 at 6:05 AM Niklas Merz <niklas.m...@rhoen.de> wrote:
>
>> 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
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to