|
|
|
|
|
by lioeters
443 days ago
|
|
> worried with localStorage of losing my work Unfortunately localStorage is not guaranteed to be persistent, especially on Safari/Webkit. > Starting in iOS 13.4 and Safari 13.1, LocalStorage will be cleared after 7 days of no user interaction on a site. 7-Day Cap on All Script-Writeable Storage - https://webkit.org/blog/10218/full-third-party-cookie-blocki... This also affects sessionStorage and Indexed DB, which is commonly used by local-first software that runs in the browser. |
|
> As mentioned, the seven-day cap on script-writable storage is gated on “after seven days of Safari use without user interaction on the site.” That is the case in Safari. Web applications added to the home screen are not part of Safari and thus have their own counter of days of use. Their days of use will match actual use of the web application which resets the timer. We do not expect the first-party in such a web application to have its website data deleted.
I'm glad to know that this isn't [entirely] destroying the concept of webpages acting in an app-like manner. At least this gives the developer and user some ability to give permission for actually persistent storage.