[SOLVED] WKWebViewOnly = true , not routing for next view

Hi @nolimits4web, I’ve a cordova project that works fine, until I had to add to he config.xml
for Apple comments in early submits.

<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">
    <param name="ios-package" value="CDVWKWebViewEngine" />
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
<preference name="AllowBackForwardNavigationGestures" value="true" />
<preference name="Allow3DTouchLinkPreview" value="false" />

And then add the plugin
<plugin name="cordova-plugin-wkwebview-engine" source="npm" />

After adding this, I can’t pass from the welcome screen to the main screen.
I’ve update cordova from command line, remove the ios platform and rebuild again but nothing change.

I’ve got 2 views in the project:

<!-- =========== WELCOME VIEW ============ !-->
<div class="login-screen">
	<div class="view view-init">
		<div class="page page-bienvenida" data-name="bienvenida">
<!-- =========== WELCOME VIEW ============ !-->

<!-- =========== MAIN VIEW ============ !-->
<div class="view view-main ios-edges" data-name="view_main" id="view_main" data-push-state="true"></div> 
<!-- =========== MAIN VIEW ============ !-->

It seems that the project fails (without errors in xcode console), routing to login page when user press on the href:
<a class="button button-fill" href="/login">Login</a>
but If I disable WKWebViewOnly it works like always did.

This is my route

      path: '/login',              
      componentUrl: './pages/login.html',

And this is my f7 config

var app = new Framework7({
  root: '#app',
  routes: f7_routes,

Can you help me?


“Just make sure you are using this plugin https://github.com/oracle/cordova-plugin-wkwebview-file-xhr