Offline storage
Cordova being a client side framework has access to the exact same storage options as any other HTML5-based web application. However, based on the device and the underlying platform that you are using, the support might vary. Bearing this fact in mind, following are the various options that are available to you to select and make use of in your mobile application:
Local storage: You can save private primitive data in key-value pairs and is generally the best option to save data locally and offline.
WebSQL: The WebSQL API is available to underlying Webview. The Web SQL Database specification offers database tables that can be accessed via SQL queries. Not all platforms support WebSQL.
IndexedDB: IndexedDB such as WebSQL is available in the underlying Webview. IndexedDB offers more features than local storage but fewer than WebSQL. IndexedDB too is not supported by all the popular platforms.
Plugin-based options: In addition to the WebSQL and IndexedDB storage APIs, the file...