Everything is in the title : I'd like to init a WKWebVIew
with a pre-loaded history.
Actually, my ultimate goal is to save the history of my WKWebView
so when a user closes the app and re-opens it, he/she can get his/her web view back ( with the same history ).
Is there a way to do that ? At first, I wanted to save the backForwardList
of my WKWebView
but it's actually impossible to set it when initialising the web view, as it is a get-only property.
I also thought about saving all the URLs and then reloading them one by one but I'm pretty sure there's an easier way to accomplish that. I don't know how Google and Apple do with Chrome
and Safari
.