dimanche 1 février 2015

What is the best way to put data in a Cordova mobile app?

I want to put a few records for example 100. I used to put them into a .js file like this:



var groups = [
{
id: 1,
parent_id: 0,
name: "Group 1"
},
{
id: 2,
parent_id: 0,
name: "Group 2"
}
];


but this is very hard to manage hundreds of records in a file like this. I can't IndexedDB because I want to push data from my PC into the app. I can't use FireBase base because I want my data offline.

What should I do? Should I use SQLite?


Aucun commentaire:

Enregistrer un commentaire