Search code examples
iosswiftiphoneios-universal-linksios-shortcut

How to deep link to automation in shortcut app?


How can an app deep link directly into the automations tab of the shortcuts app?

Below is a user guide with some info about deep linking into the shortcuts app

https://support.apple.com/guide/shortcuts/open-or-search-the-gallery-from-a-url-apd9c112ca23/ios

Running the below code will deep link into the Shortcuts app Gallery

let shortcut = URL(string: "shortcuts://gallery")!

UIApplication.shared.open(shortcut, options: [:], completionHandler: nil)

Solution

  • Open URL shortcuts://automations can achieve this.

    With URL shortcuts://create-automation, you can alert an Automation create view after open Shortcuts App.