angular2-localstorage icon indicating copy to clipboard operation
angular2-localstorage copied to clipboard

How to handle localStorage issue in private browsing on iphone safari?

Open gowthamrodda opened this issue 9 years ago • 1 comments

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?

gowthamrodda avatar Jan 04 '17 11:01 gowthamrodda

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

PaquitoSoft avatar May 05 '17 09:05 PaquitoSoft