WKWebView simple navigation problem
See original GitHub issueThis 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:
- Created 7 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.