Hello,
I've tried to figure this out for weeks now, but can't find a solution. I am not very experienced in App Development yet, so maybe it can be solved with little effort and I just don't know how...?
I am working on a baby journal app where parents should be able to share a child record together with all its entries (existing ones and ones that are going to be added in the future) to be able to both edit and add and look at entries. So, I need sharing like in the Apple Notes App.
I am using core data and the new NSPersistentCloudKitContainer. The core data model consists of a child record and entities that are referencing to the child.
I know that at the moment NSPersistentCloudkitContainer doesn't support sharing.
I have no clue how to add sharing with CKShare API beside the core data stuff. To have a proper solution, do I need to
a) throw away NSPersistentCloudKitContainer and solely base the app on CloudKit API with no core data at all?
b) add CloudKit Sharing via CKShare API, existing beside the core data stuff, so in the end I have core data entities and CKRecords? But how do I solve that in a proper manner?
c) sync the shared records into the core data database and subscripe to changes - so basically do a cloudKit-CoreData-Sync in addition for the shared databases....?
none of the above mentioned solutions sound really smart to me.... so I was wondering how Apple has solved this for the notes app. Is it based on cloudkit only or on NSPersistentCloudKitContainer and added sharing via CKShare API manually? Does it sync to coredata back and forth ?
And: What do you think how likely is it that Apple will support sharing for use of NSPersistentCloudKitContainer in the near future?
Thanks a lot for your help.
Katharina