Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Siri Shortcuts: How do I create a UI for the intent parameters of an iOS shortcut?

I'm trying to create an INIntent to be set up with the new iOS Shortcuts app in iOS 12. I have read the documentation and watched the apple video about it.

I have managed to set everything up and the shortcuts work well, however I can’t seem to figure out how to make customizable options that the user can edit when setting up the shortcut. An example of this would be how the Calendar app’s shortcuts are set up:

Calendar shortcut setup

Notice the options for Get, Add Filter, Sort by, etc..

I know I can add parameters to the intents in the Intents.intentdefeniton file, but those parameters needs to be set from the app itself before the interaction is donated to the iOS system via SiriKit.

Regardless of what I do the Intent just shows up empty without options.

Any help is appreciated!

like image 797
Anton Avatar asked Sep 20 '18 12:09

Anton


People also ask

What is a Siri intent?

Intents are the actions that can be performed by the user with Siri. With the custom intents, we can have better control over Siri Shortcuts. We can also create a custom Intents UI that can display some relevant information to the user without opening the app.


1 Answers

I am sorry to bring you bad news, but there is no way to do that. The apps that appear there (like Trello, Overcast, Pocket, etc...) were already supported by Workflow.app before Shortcuts.app was released.

You can try to work around it by calling URL Schemes directly but it might not be the solution you are after.

like image 163
Tiago Almeida Avatar answered Oct 03 '22 01:10

Tiago Almeida