Is LocalStorage on the iPad reliable?

I have seen some people’s comments suggesting that localStorage on the iPad is unreliable. Can anyone confirm that they are happy to use localStorage on the iPad? I know there is a 5Mb limit-is it still true?

Thank you

I’ve been studying one to use on the iPad The localStorage project. According to my experience, localStorage is very stable. However, there are two things to consider:

>Yes, the storage limit is still 5Mb. Since the characters are stored in UTF16 format, so Only 2.5M characters can be stored in localStorage.> Compared with other localStorage implementations, localStorage.setItem() will not delete any previous item with the same key before storing a new item. In other words: when overwriting an item, it should always be Call localStorage.removeItem() before calling localStorage.setItem(), otherwise you will run out of space soon.

I have seen some people’s comments suggesting that on the iPad The localStorage is unreliable. Can anyone confirm that they are happy using localStorage on the iPad? I know there is a 5Mb limit-is it still true?

Thank you

I have been working on a project that uses localStorage on the iPad. According to my experience, localStorage is very stable .However, there are two things to consider:

>Yes, the storage limit is still 5Mb. Since characters are stored in UTF16 format, only 2.5M characters can be stored in localStorage.> and others Compared with the localStorage implementation, localStorage.setItem() will not delete any previous items with the same key before storing a new item. In other words: When overwriting an item, you should always call localStorage before calling localStorage.setItem(). removeItem(), otherwise you will run out of space soon.

Leave a Comment

Your email address will not be published.