iosswiftsirikitsirishortcutsintents-extension

How to customise SiriKit intent extension for shortcuts app to ask allow access?


We are allowed to build custom intent for Siri, by extending SiriKit. Moreover, Apples present how to manage basic integrations and customizations to Siri Shortcuts and Shortcuts app

Link for shortcuts app

Nonetheless, some apps have their own shortcuts UI with a little customization; for instance with the button to allow access for API, how can we do that?

In the documentation presented by Apple, there is no such instruction for how is it possible to customize the UI inside the shortcuts app regarding the custom intent created by my app.

I tried to make custom failure for the Intent response but didn't find the option for API access. Like ↴

enter image description here

However nothing quite similar to the UI presented by Shortcuts App, while attempt to first run trello ↴


Solution

  • These actions are provided by the Shortcuts app itself rather than by Siri intents exposed by another app. Indeed, these actions don’t even need the Trello or Wunderlist apps installed.

    This means that Shortcuts can present a different UI.

    The UI that it will show for your app is defined by the parameters in your intents file.

    You can’t create the same experience for your app, however the user can perform any required authorisation in your app itself and it is reasonable to expect that they have run your app before trying to set up shortcuts that use it.