简体   繁体   中英

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.

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM