I recently noticed that putting the app on background for some time, then switching back to it again causes the WKWebView to reload the current page, same with just hitting f5 on it. How do we disable this behavior?
WKWebView auto reloading upon app resume
We have the same problem reported by many of our customers. Our app is Mac Catalyst.
They are filling a form, go somewhere to copy some infos and when they return, the WKWebView refresh by itself thus they loose everything. It happens on M1, M2 and M3
Mac Catalyst WKWebView reload by itself when returning from another app.
I hope that Apple fix their bug before they move to Risc-V in 5 years.