paulw11 / Seam3

Cloudkit based persistent store for Core Data
Other
209 stars 25 forks source link

Duplicate records #82

Closed daviddelmonte closed 6 years ago

daviddelmonte commented 6 years ago

I thought I'd solved this but I haven't. On first use, on one device, I fill a table with a number of records, fine. But then I using a second device for the first time -- the records are duplicated. I think I need to add another key or two to CKRecordId? But I don't want to step on your code.. Are there alternatives?

daviddelmonte commented 6 years ago

Thinking some more... I have several data lists in JSON. These are imported on first run to Core Data objects. When this happens on another device, CloudKit assumes they are different records and thus, I get duplicates. Unless you have better way, I'd like to intercept and check the recordId to add a common identifier.

daviddelmonte commented 6 years ago

I think I've found the problem. Don't run the app in the simulator if you are relying on remoteNotifications. This will cause duplications..