I am developing a PhoneGap application for Android (will work on iOS too).
The app will be online / offline. I am currently using javascript / jquery to make ajax calls to a WCF JSON service on the server side.
This is my sync mechanism. It's very ad-hoc, I need to sync from database table x, so I will write some code on the server side to load that data and expose it on the service. I will write some code on the client side to call that method on the service and sync it into my database on the client side.
Making sure that data doesn't clash is pretty much roll your own as required.
Just wondering if there are any libraries around to sync data like this? Think of something like SQL replcation (but not SQL replication).
I could be writing a number of applications like this, so a generic solution would be ideal.
UPDATE:
This question has been raised again. Why is it that we have an HTML5 standard which is specifying that we can have offline databases, and cache html pages and javascript on the device, but we don't have a standard way to synchronise data?
This points to the fact that we expect to be able to go offline with our applications.
Sure, it might be easy to do in a simple application which is what we should be developing at the start.
But the next app we will be writing will be a lot more complicated.