Is Localstorage on iPad Safari Guaranteed to Be Persistent

HTML5 LocalStorage not persistent on iOS after Power Off

The problem seems to be with the version of iOS.
I had this issues with v4.3 on an iPad, and v4.3.1 on an iPhone.
v4.2.1 on an iPad works just fine.
v4.3.2 on an iPad will maintain the data across power-off, but NOT for clearing the cache.
I hope this helps someone else.

Persistent local storage in iOS Safari issues

Issue 1 is Safari behavior and cannot be changed externally with code. Please open a feature request or bug report with Apple:

https://www.apple.com/feedback/safari.html

Issue 2: Unfortunately, the technique you are using "3rd party local storage" is a technique employed by tracking technologies. The recent privacy push has led all browsers to make more strict rules for 3rd party cookies, and other local storage. You will find that privacy settings will make your user experience inconsistent. You cannot expect your local storage to be reliable when you are a 3rd party.

SEE:
Is there any workaround to set third party cookie in Iframe for safari?

AND

https://medium.com/@bluepnume/safaris-new-tracking-rules-and-enabling-cross-domain-data-storage-85241eea7483

AND

https://groups.google.com/forum/#!topic/mozilla.dev.platform/vm81cSx4teo

localStorage not accessible in IOS-6 Safari

I was able to fix the issue by turning off private browsing on the iPad. I came across the solution from the reference : https://github.com/cloudhead/less.js/issues/312#issuecomment-2994845

Safari localStorage not persisted between sessions

I'm still waiting on a reply from Apple, but it's safe to say we're stuck with this behavior. So Anubhav's answer is accurate, but we still needed a solution.

So as a work around, we created new endpoints on our server for persisting/restoring game state. We only utilize this for Safari, for all other browsers we're still persisting our game state in localStorage.

There is a slight performance penalty for the user. And a slight server cost. Not a sexy solution, but now our Facebook canvas app supports Safari.

Safari on iOS=11 block cookies & web storage by default - how to persist (first-party) data?

I did some reading and found this:

iOS11 does introduce a cookie storing prevention mechanism called
Intelligent Tracking Prevention but that affects only 3rd party
cookies. On iOs11, the default setting for Managing Cookies is Allow
cookies from current websites
i.e. First party cookies.

So your application should not have a problem.
It should work fine. Reference: https://webkit.org/blog/7675/intelligent-tracking-prevention



Related Topics



Leave a reply



Submit