1

I am receiving url from webview through location.href. However, if location.href is called consecutively on one page, the last location.href is called and the first location.href is missing. Both are called well on Android, but is there a reason for that only in iOS wkwebview?

kyeahen
  • 161
  • 8
  • Any code? both `WKWebView` and HTML codes. – Raptor Aug 29 '22 at 02:10
  • ```webView(_:decidePolicyFor:decisionHandler:)``` is not being called at all. So I tried debugging on the web code. On the code, each ```location.href``` is executed through a conditional statement, which satisfies both conditions. When i put a breakpoint in each conditional statement and run it, ```location.href``` is all executed, but usually when you run the app, only the last ```location.href``` is called. – kyeahen Aug 29 '22 at 02:22
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 29 '22 at 05:29

0 Answers0