CKShare Invitation URL sharing

CKShare provides a url that allows others to be invited. It is necessary for a potential participant to have access to this url (otherwise there is no way for them to accept the invitation). An easy solution is to send this url via the Messages application, but this is an extra step for the share owner. I have noticed that Apple's Passwords app somehow sends this url to the invited user within the Passwords app - and I wonder if this is possible with just public Apple apis, or if Apple uses some private api to achieve this.

Answered by DTS Engineer in 809734022

"An easy solution is to send this url via the Messages application, but this is an extra step for the share owner."

Yeah, participants need to have the share URL (CKShsare.url). If you use the system provided share UI (ShareLink, etc), it allows you to send the link via Message, Mail, and etc.

You don't have to rely on the system provided share UI to implement your sharing flow though. If you implement the sharing flow in your own way, as discussed in Implement a custom sharing flow, you can retrieve the share URL after successfully saving the share, and send it in your own way.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

"An easy solution is to send this url via the Messages application, but this is an extra step for the share owner."

Yeah, participants need to have the share URL (CKShsare.url). If you use the system provided share UI (ShareLink, etc), it allows you to send the link via Message, Mail, and etc.

You don't have to rely on the system provided share UI to implement your sharing flow though. If you implement the sharing flow in your own way, as discussed in Implement a custom sharing flow, you can retrieve the share URL after successfully saving the share, and send it in your own way.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Hi Chen,

that is exactly my question, how does Apple archive this custom sharing flow without using Messages, Mail etc ind the Passwords App?

Greetings, Johannes

I don't know how Passwords.app was implemented, and so don't have anything to share, but with the API mentioned above, you should be able to create you own UI and share flow.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

CKShare Invitation URL sharing
 
 
Q