I have done quite a few searches, and I can’t find direct answers to the question of how reliable the local resource is. After storing some data from an HTML5 page, leaving the iPad idle for about an hour, then close Safari (swipe up the screen) and then open it again - the data is gone!
As far as I understand, this was a known problem in iOS 5 and 6, but in iOS 7.0.3 the problem was resolved - and yet I see disappearing data in iOS 7.1.2. And I don’t know if this was due to the fact that the iPad remained idle for an hour (I realized that the local storage is constantly - forever - until you clear it) or because of a hard reset Safari ( again, closing the browser should not destroy your data, right? I found confirmation that the data should be saved through tabs and windows.)
I saw some warnings not to rely on localStorage, but I would like to know why not - under what circumstances can I expect this to work, or is it still pretty much a diceroll even in the latest version of iOS / Mobile Safari? Will I have more luck in Chrome, or is it a device problem, not a browser problem?
Any understanding of this would be greatly appreciated.
source
share