7

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!

Anton
  • 978
  • 8
  • 16
  • It seems that these stuff are set up by developers of shortcuts\workflow app internally. Only predefined apps (apple apps\evernote\todoist\facebook\bear\etc) seems to have such options. Would be glad if I'm wrong. – krosh Sep 25 '18 at 17:06

2 Answers2

4

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.

Tiago Almeida
  • 14,081
  • 3
  • 67
  • 82
  • That is unfortunate. I really hope they release such a feature, it would make shortcuts more useful for developers. – Anton Sep 26 '18 at 14:47
  • I agree with you, but I also understand that it creates another set of problems regarding UX. This was a good first step, maybe next year? :D – Tiago Almeida Oct 02 '18 at 07:53
0

I think you need to create an Intents UI Extension for this.

https://developer.apple.com/documentation/sirikit/creating_an_intents_ui_extension

ManuelMB
  • 1,254
  • 2
  • 8
  • 16