How to connect sqlite with online database in Phonegap

I created the database using phonegap [cordova 1.7.0] sqlite on IOS5. But now I want to switch this database to the one that I already have on the online server. Is there any way to do this?

Many thanks.

+3
source share
4 answers

If I understood correctly, you want to use your current logic to handle access to the database to connect to the remote sqlite database.

I think such a use case is not possible. Cordoba uses support for WebSQL embedded in iOS and Android (or provides its own compatible implementation).

There are at least 2 solutions to your problem:

  • , , , . , , .

  • Cordova, sqlite, WebSQL. , iOS WebSQL, sqlite .

+2

, .

+2

sqlite Phonegap. -sqlite () / , Phonegap db (, , Download), sqlite db.

+2

Or you can also do it this way. Create a dbase XML file on the server and parse it, then you can make changes to the existing database by reading the contents of the xml files.

+1
source

All Articles