With UIWebView class, is it possible to save a browsing session when the app’s goes into background and then fully restore it when the app is activated or relaunched afresh? According to the documentation, UIWebView class does conform to the NSCoding protocol, but will archiving an instance of UIWebView class also preserve the cookies and the JavaScript state of the page (and maybe HTML5 local storage too) so that the page restores with identically the same look and with exact same functionality? My app views pages with heavy and scattered graphics and JavaScript which loads for way too long over cellular so saving browsing sessions would be a really, really nice improvement to have.
Share
Probably not. Even Safari doesn’t do this.
All UIView classes conform to NSCoding in order to support unarchiving from nib files, to set up a user interface. This is a special case and not a general purpose archive/unarchive mechanism that exists for other classes.
There are probably some things you could do: