An overview of storage options for Cordova.
Several storage APIs are available for Cordova applications. See html5rocks. for a more complete overview and examples.
Also known as web storage, simple storage, or by its alternate session storage interface, this API provides synchronous key/value pair storage, and is available in underlying WebView implementations. Refer to the W3C spec for details.
Windows Phone 7 Quirk: Dot notation is not available, so be sure
getItem rather than access keys directly from
the storage object, as in
This API is available in the underlying WebView. The Web SQL Database Specification offers more full-featured database tables accessed via SQL queries.
The following platforms support WebSQL:
This API is available in the underlying WebView. Indexed DB offers more features than LocalStorage but fewer than WebSQL.
The following platforms support IndexedDB: