question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WKWebView simple navigation problem

See original GitHub issue

This is a (multiple allowed):

  • bug
  • enhancement
  • feature-discussion (RFC)
  • Framework7 Version: 1.4.2
  • Platform and Target: Cordova iOS

What you did

Added WKWebViewEngine to my Cordova App

Expected Behavior

Navigation working fine

Actual Behavior

Simple navigation is not working. If I remove the plugin and use UIWebView there’s no problem, but with WKWebView the internal links not working. The current navigation I’ve used: <a href="somepage.html">Some page</a> While it works fine using UIWebView, with the new cordova-plugin-wkwebview-engine@1.1.0 is not working.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
valnubcommented, Oct 11, 2016

For me it looks like you’re using ajax pages, right?

I don’t think that works well with Cordova because index.html is served via file:/// protocol instead of http.

Ajax requires http though, it will not work with file:///

Try to create your app without ajax pages. In Cordova apps it’s better to have all pages in one html file anyways because index.html is loaded almost instantly, so there is no reason to keep the file small.

If you want to split your pages each into an own file for better development structure, do that using Nunjucks templates and Gulp. The result of the Gulp build is what should be compiled into index.html.

0reactions
lock[bot]commented, Jun 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem with navigation in WKWebView Swift - ios
1 Answer 1 ; SomeViewController: WKUIDelegate ; webView(_ ; WKWebView, createWebViewWith ; WKWebViewConfiguration, for ; WKNavigationAction, ...
Read more >
How to Hijack WKWebView Navigation Actions
Hijacking WKWebView Navigation Action​​ Within the delegate method, we first make sure that the navigation action is triggered by a hyperlink. ...
Read more >
Creating Simple Web Browser with WKWebView & ...
Creating Simple Web Browser with WKWebView & UINavigationController · Setup Previews for your project · Your first WebView · Adding title. Using ...
Read more >
WKWebView | Apple Developer Documentation
WKWebView provides a complete browsing experience, including the ability to navigate between different webpages using links, forward and back buttons, and more.
Read more >
Creating a simple browser with WKWebView
It will still be placed inside the navigation controller, but the rest is up to us. iOS has two different ways of working...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found