I am trying to distribute a Siri Shortcut with an iOS app. However, after bundling the shortcut with the app, I did not find a way satisfying way to get it installed.
How can I install a shortcut from my iOS app (in an Apple-approved way) besides an iCloud link?
Note that I am NOT talking about donating single INIntents here. I want to include a complex shortcut that includes branching, looping, etc.
What I've tried so far: My shortcut has been exported as a .shortcut file, which I included as a resource in my app bundle.
- I was unable to install the shortcut through UIActivityViewController, as there is no "Add to Shortcuts" option. I can store the shortcut in Files and let the user open it from there, but this is not acceptable UX.
- I was unable to open the shortcut with the shortcuts app directly using
UIApplication.shared.open(fileUrlOfShortcut)
- I was unable to identify a URL scheme of the shortcuts app, which would allow me to add a shortcut.