nothirst / TICoreDataSync

Automatic synchronization for Core Data apps, between any combination of Mac OS X and iOS: Mac to iPhone to iPad to iPod touch and back again.
https://github.com/nothirst/TICoreDataSync/wiki
807 stars 61 forks source link

Can i sync without uploading? #12

Closed AndrewHartAR closed 11 years ago

AndrewHartAR commented 12 years ago

The first device to sync has to upload first, but the uploaded store is never used, because downloading it would write over all device data. This renders the upload pointless, since it's just syncing based off syncing data.

Can i skip the upload process?

MrRooni commented 12 years ago

I'm not sure I understand your question. The first device to sync needs to upload the whole store so that other sync clients have a starting point from which to begin applying changes.

Sent from my iPhone

On Sep 14, 2012, at 5:31 PM, ProjectDent notifications@github.com wrote:

The first device to sync has to upload first, but the uploaded store is never used, because downloading it would write over all device data. This renders the upload pointless, since it's just syncing based off syncing data.

Can i skip the upload process?

— Reply to this email directly or view it on GitHub.

chbeer commented 12 years ago

The demo apps all upload the whole store after succesful registration. So there is more than one whole store after a while. So the question would be: can I disable uploading the whole store for all devices but the first?

MrRooni commented 12 years ago

There's no official support for this in the framework, but what you could do is ask the application sync manager for a list of previously registered documents:

- (void)requestListOfPreviouslySynchronizedDocuments;

And, if that comes back with anything assume that another client has already performed an upload of the whole store.