Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

BUG: Adding item from an offline device, cause records duplication on other synchronized device #50

Open
eugeniobaglieri opened this issue Nov 10, 2018 · 1 comment

Comments

@eugeniobaglieri
Copy link

eugeniobaglieri commented Nov 10, 2018

i was checking if this framework is good from my needs, so I began some test with the example project.
I started the app on two real devices, an iPhone and an iPad, added and deleted some record and all seems work fine.
On the last test i put the iPhone in flight mode, added some record and quit from app, after that I reenabled connectivity and launched app.
The iPad updated consequently but all records where doubled!.
After that the sync did not work anymore as expected.

I think is a bug, because is replicable every time.

@eugeniobaglieri eugeniobaglieri changed the title Weird offline behaviour, maybe bug? BUG: Adding item from an offline device, cause records duplication on other synchronized device Nov 10, 2018
@deeje
Copy link
Collaborator

deeje commented Dec 2, 2018

yep, current implementation only catches willSave/didSave Core Data notifications and attempts to push changes to CloudKit immediately. I'm working on a branch that uses NSPersistentHistory to push changes only when online.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants