Database in hybrid app using Cordova

2

What are the most feasible and feasible solutions for using a database in a Hybrid APP (Android / iOS) made in Intel XDK (Cordova)?

    
asked by anonymous 11.03.2015 / 12:50

2 answers

2

When it comes to Cordova (Android and iOS) the options are as follows:

  • LocalStorage
  • WebSQL
  • Or plugins for storing files in memory.

There are other forms of storage also possible, if your application uses an Internet connection you can store all the data on a server and receive / send the information through a WebService.

If you use an external plugin to do this management I recommend checking this link

    
13.03.2015 / 15:02
1

The most current technology and the standard to be adopted for HTML5 development is IndexedDB, although it is not listed on the cordova site, the webviews of Android and IOS support IndexedDB and the support only tends to improve. link

I would advise you to create a test application and check if the implementations on the devices you need meet your needs.

There are libraries that allow access via the IndexedDB API but in unsupported browsers they use WebSQL to write the data, it can be a solution if the device you are developing does not support IndexedDB. An example is PouchDB .

    
18.04.2015 / 04:43