Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8617625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:54:22+00:00 2026-06-12T05:54:22+00:00

With UIWebView class, is it possible to save a browsing session when the app’s

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:54:23+00:00Added an answer on June 12, 2026 at 5:54 am

    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:

    • Save and restore scroll position.
    • Aggressively cache data; look at the docs for the URL loading system, this is what UIWebView uses. It does some caching by default but I believe you can tune it to do more.
    • Save and restore session cookies, which would normally be discarded (see HTTPCookieStorage).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIWebView named wView. I want to use webViewDidFinishLoad: in my class,
In UIWebView 1 click a hyperlink then open UIWebView 2, click a hyperlink in
I have a UIWebView in my iPhone app that have a web page with
I'm loading in a UIWebView from another class, and that works great. But now
I have create a custom UIWebView. On some class if I include my custom
I am create a Class which have a UIWebView property. I want to set
I am loading an HTML string into a UIWebView in order to be able
iOS documention says, that the UIWebView class conforms to UIScrollViewDelegate. But an UIWebView instance
In my class derived from UIViewController I have a class variable of type UIWebView*
I want to use javascript to check if a class exists within a UIWebView.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.