angular2-localstorage
angular2-localstorage copied to clipboard
How to handle localStorage issue in private browsing on iphone safari?
I used this module and localstorage working fine in chrome and safari in desktop. but in iphone localstorage is not working. How to fix this?
It might be related to Safari private browsing issue with localStorage. In that browsing mode, Safari exposes the localStorage object, but it refuses to store any value. I didn't find any Apple word about this, but you can find lots of reference about this. Example: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API ("Private Browsing / Incognito modes" section) http://stackoverflow.com/questions/14555347/html5-localstorage-error-with-safari-quota-exceeded-err-dom-exception-22-an