Hi Jens et al,
I'd like to be able to provide my customers with another way of syncing their devices. Currently I'm providing Cloud sync via IBM Cloudant and Nearby Sync using peer-to-peer syncing in CBL 1.3.
But many of my customers would prefer to use something like iCloud or Dropbox for syncing. In fact, I just released the new version of my app after a year in development switching over to Couchbase Lite and I've been roasted in the app reviews because I dropped support for iCloud and Dropbox syncing. So I"m trying to find a way to get it back yet still be able to have all the advantages of Couchbase Lite, which is a fantastic framework of course.
I already have code in my app to generate an archive file using CBLDocument's putExistingRevisionWithProperties, so I know how to work with that.
But I was wondering what the viability of using that method would be to provide a file based sync solution? What I mean by that is I would take incremental snapshots of the changes made since the last time a sync operation occurred, then I would store the change file in iCloud Drive or Dropbox and then on the other device, read the changes file and process it using putExistingRevisionWithProperties.
It would have to be able to handle deletes, updates, and new documents.
Does something like that sound viable? I'm thinking that it is as long as I can get a list of documents that have changed recently and if those documents contain the isDeleted flag. It seems like it's a possible solution for me.
Any comments, ideas, or concerns with implementing something like this?
Thanks!
Brendan