I have a Core Data + Couldkit App where any changes made on other device is not synched. I had to call the fetch method again refresh the data.
I even added the necessary lines,
let container = NSPersistentCloudKitContainer(name: "myappcontainername")
container.viewContext.automaticallyMergesChangesFromParent = true
The following are the CoreData logs after making a change,
CoreData+CloudKit: -[NSCloudKitMirroringDelegate finishedAutomatedRequestWithResult:](2119): Finished request '<NSCloudKitMirroringExportRequest: 0x6> -UUID' with result: <NSCloudKitMirroringResult: 0x> success: 1 madeChanges: 1 error: (null)
What else should I be doing to make this work?
Post
Replies
Boosts
Views
Activity
I am building a CoreData UIKit application where I want to store the date and time same as the current timezone. Since NSDate doesn't have the ability to store timezone unlike Swift Date object, What's the best way to store the date with time zone? This is like a memory application where the record stored must have the same date as device when first created and if the user switches to a different timezone, The record must be fetched for the date irrespective of timezone.