Open source implementations
There are several open source projects for synchronizing the PhoneGap application with a remote server. But you will have to adapt / implement to fit your project.
Synchronize local WebSQL Db with server
Couchbase Lite PhoneGap Plugin
Pouchdb
Alternatively, user API
You can create your own set of API methods for sending / updating data from WebSQL
to your remote DB
server. Flagging entries that need to be "synchronized" with an external server. But you will have to take measurements for a large number of logics if the synchronization process has 2 paths (central server - application - central server).
Since your question limits the amount of information that is difficult to handle with more detailed information at this stage.
source share