Hi,
I'm trying to replicate what Pages, Numbers, Keynote and Notes does in iOS 11 (maybe also 10) where you can "Collaborate with others" on a document, and that in turn allows other users to edit the SAME document as what you are editing in iCloud. It's NOT A COPY they edit, but the actual same data in iCloud, despite being a seperate user to that which created it.
It's basically this stuff here that I'm trying to replicate... https://support.apple.com/en-gb/HT206181
So far, I've got my own UIDocument class, of which the file is stored in the folder specified by URLForUbiquityContainerIdentifier. I can see the file in iCloud drive, because I've put the necessary NSUbiquitousContainers entry into the info.plist. Inside the "Files" app on iOS I can see the "Add People" option on my file, which generates a link in a format similar to the following (data changed slightly)...
https://www.icloud.com/iclouddrive/2kh23kh23k324#TestDoc1
I notice that with apps like Pages etc that the link sent to other collaborators is a similar format, but I'm now at a loss to know what the second person should do with that link. With Pages, iOS somehow knows what to do with the link and you just start to edit the document directly within Pages.
Can anybody please give me a clue as to what I'm missing? It's possible that I'm going down completely the wrong route to achieve my goal. I've looked at using CKRecord to share data as I've read about CKShare, but I can't figure out how that would appear in iCloud Drive so not sure that's the right route either.