QuotaExceededError: Dom exception 22: An attempt was made to add something to storage that exceeded the quota

Using LocalStorage on iPhone with iOS 7 throws this error. I’ve been looking around for a resolvant, but considering I’m not even browsing in private, nothing is relevant.

I don’t understand why localStorage would be disabled by default in iOS 7, but it seems it is? I’ve tested on other websites as well, but with no luck. I even tried testing it using this website: http://arty.name/localstorage.html, but it doesn’t seem like it’s saving anything at all for some weird reason.

Has anyone had the same problem, only they’ve had luck fixing it? Should I switch my storage method?

I tried hard-debugging it by only storing a few lines of information, but to no avail. I used the standard localStorage.setItem() function to save.

9 Answers
9

Leave a Comment