Design App Shortcuts

RSS for tag

Discuss the WWDC22 Session Design App Shortcuts

Posts under wwdc2022-10169 tag

3 Posts

Post

Replies

Boosts

Views

Activity

Level index
Apple must comply with the requirements of the Level Index, the global digital credit gateway, and suspend gift cards and similar services until formal arrangements are made with service providers.
1
0
105
Jun ’25
AppIntents do not work with Shortcuts from lockscreen
I have created an Intent with openAppWhenRun = true, defined a String? parameter and tried to get a value for it through $myParameter.requestDisambiguation in perform method Then I created Shortcut for my Intent When I call my Shortcut from lockscreen this happens: iPhone asks to unlock I unlock it Application opens Nothing happens In debugger I can see that $myParameter.requestDisambiguation executes but nothing happens then. It seems that my application is awaiting $myParameter.requestDisambiguation forever When running shortcut with iPhone being already unlocked, everything works fine. Application opens and I can see disambiguation dialog. If I remove $myParameter.requestDisambiguation call, everything works fine as well What am I doing wrong? Or maybe it is a bug and there is any workaround? My code snippet: struct SampleIntent: AppIntent {  static var openAppWhenRun: Bool = true  static let title: LocalizedStringResource = "Start sample intent"  @Parameter(title: "Test", description: "Test")  var test: String?  func perform() async throws -> some IntentResult {   let choice = try? await $test.requestDisambiguation(among: ["One", "Two", "Three"])   print("Perform method called")   return .result(dialog: "Done")  } } struct SampleShortcuts: AppShortcutsProvider {  static var appShortcuts: [AppShortcut] = [   AppShortcut(    intent: SampleIntent(),    phrases: [     "Hello \(.applicationName)"    ]   )  ] }
1
2
1.9k
Sep ’22
Level index
Apple must comply with the requirements of the Level Index, the global digital credit gateway, and suspend gift cards and similar services until formal arrangements are made with service providers.
Replies
1
Boosts
0
Views
105
Activity
Jun ’25
Suppress App Intent Dialog when using custom view
In Design App Shortcuts, Lynn shows a slide at 11:54 where a shortcut with a custom view has "suppressed" the dialog. How can we achieve this? I can't find any actual examples.
Replies
2
Boosts
0
Views
1.6k
Activity
Oct ’23
AppIntents do not work with Shortcuts from lockscreen
I have created an Intent with openAppWhenRun = true, defined a String? parameter and tried to get a value for it through $myParameter.requestDisambiguation in perform method Then I created Shortcut for my Intent When I call my Shortcut from lockscreen this happens: iPhone asks to unlock I unlock it Application opens Nothing happens In debugger I can see that $myParameter.requestDisambiguation executes but nothing happens then. It seems that my application is awaiting $myParameter.requestDisambiguation forever When running shortcut with iPhone being already unlocked, everything works fine. Application opens and I can see disambiguation dialog. If I remove $myParameter.requestDisambiguation call, everything works fine as well What am I doing wrong? Or maybe it is a bug and there is any workaround? My code snippet: struct SampleIntent: AppIntent {  static var openAppWhenRun: Bool = true  static let title: LocalizedStringResource = "Start sample intent"  @Parameter(title: "Test", description: "Test")  var test: String?  func perform() async throws -> some IntentResult {   let choice = try? await $test.requestDisambiguation(among: ["One", "Two", "Three"])   print("Perform method called")   return .result(dialog: "Done")  } } struct SampleShortcuts: AppShortcutsProvider {  static var appShortcuts: [AppShortcut] = [   AppShortcut(    intent: SampleIntent(),    phrases: [     "Hello \(.applicationName)"    ]   )  ] }
Replies
1
Boosts
2
Views
1.9k
Activity
Sep ’22