Search code examples
web-applicationsindexeddbweb-sqlios7offline-storage

iOS7 Mobile Safari offline data storage options


I'm looking to build offline-capable web apps in the next few months that require persistant client-side storage ideally larger than localStore and was curious does anyone know the status of IndexedDB in iOS 7 beta? I'm guessing it's still not available but am not seeing it tested on caniuse yet.

Web-Sql was deprecated years ago so I'm reluctant to continue relying on it but it still appears to be available on iOS 7 beta according to caniuse so I suppose an alternative would be to stick with websql for now or use a polyfill.

I'm just trying to avoid relying too heavily on web-sql if it's not going to be around much longer or most other platforms have moved on to IndexedDB in the meantime.


Solution

  • I would advice you to use the polyfill for now. this way your code will be indexeddb API ready. When the indexedDB API then arrives it's only a matter of disabling the polyfill (and that will even happen automatically)