HomeiOS Developmentnet functions - iOS: hash urls do not work on WKWebView, however...

net functions – iOS: hash urls do not work on WKWebView, however work on Safari browser


I’m making an attempt to show an online app on an iOS WKWebView, however hash urls do not appear to work.

Nonetheless if I open the identical net app on iOS Safari, the hash urls work correctly. Additionally they work correctly on each the Android WebView and Android Chrome.

It’s totally straightforward to confirm the problem with this URL:

  • in case you open it on Safari and click on on the “SEARCH” button ==> it appropriately shows the outcomes web page.
  • in case you open it on a WKWebView and click on on the “SEARCH” button ==> it incorrectly shows a clean display.

In keeping with this there appears to be some points with the window.onhashchange on WKWebView.

What’s one of the simplest ways to repair this concern iOS-side, in order that hash hyperlinks are acknowledged, and the online app can behave on the WKWebView the identical as on Safari?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments