title: Libraries for Online / Offline Mobile Syncing
body: <p>I am developing a PhoneGap application for Android (will work on iOS too).</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Making sure that data doesn't clash is pretty much roll your own as required.</p>
  
  <p>Just wondering if there are any libraries around to sync data like this? Think of something like SQL replcation (but not SQL replication).</p>
  
  <p>I could be writing a number of applications like this, so a generic solution would be ideal.</p>
  
  <p>UPDATE:</p>
  
  <p>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?</p>
  
  <p>This points to the fact that we expect to be able to go offline with our applications.</p>
  
  <p>Sure, it might be easy to do in a simple application which is what we should be developing at the start.</p>
  
  <p>But the next app we will be writing will be a lot more complicated.</p>