Questions tagged [appintents]

AppIntents is a Swift-native framework that was introduced in iOS/iPadOS 16, macOS 13, watchOS 9 and tvOS 16. As Apple describes in the documentation:

The App Intents framework offers a programmatic way to make your app’s content and functionality available to system services like Siri, [Spotlight] and the Shortcuts app. The programmatic approach lets you expose any of your app’s capabilities, and not just ones that fall into specific categories. You also use this programmatic approach to supply metadata, UI information, activation phrases, and other information the system needs to initiate your app’s actions.

The AppIntents framework is the modern way to build Shortcuts for Siri, Spotlight and the Shortcuts app. It complements the SiriKit Intents framework (introduced in iOS/iPadOS 10, macOS 12, watchOS 3.2 and tvOS 14).


Related Tags

56 questions
1
vote
0 answers

Implementing a Measurement type parameter on an iOS App Intent

Apple state that the Measurement type can be used wrapped with @Property on an App Intent and used with Siri... I've tried to implement this and get a warning that UnitLength isn't Sendable and secondly Siri doesn't seem to understand any kind of…
Will Alexander
  • 337
  • 2
  • 16
1
vote
0 answers

Return LocalizedStringResource from a method

I'm trying to localize an iOS App Intent, but my strings are in a different table/file ("AppIntents.strings"). For this reason I'd like to create a wrapper that automatically sets this table. However, this only seems to work when I directly set the…
Bram
  • 53
  • 5
1
vote
0 answers

iOS 17 AppIntent and requesting confirmation for widgets

I have a home widget with buttons (new in iOS 17). In order to prevent taking action if the user taps on the widget buttons accidentally, I want to ask the user for confirmation. It appeared that requestConfirmation be exactly what I needed, but no…
RawMean
  • 8,374
  • 6
  • 55
  • 82
1
vote
1 answer

Siri enters loop of requesting parameter when running AppIntent

I want to add shortcut and Siri support using the AppIntents framework. Running my intent using shortcuts or from spotlight works fine, as the touch based UI for the disambiguation is shown. However, when I ask Siri to perform this action, she gets…
DeMo
  • 47
  • 1
  • 7
1
vote
1 answer

How do I set the label for an intent's output in the shortcut creator?

I'm creating a custom intent using the AppIntents framework. I've set up my intent to return a result with some data so I can use it in other shortcuts. When I use the output result as the input to another action, it shows the title field as the…
JBYoshi
  • 258
  • 2
  • 6
1
vote
0 answers

Setting Authentication Policy for AppIntent does not seem to work as expected

I have a simple app intent using the AppIntents framework. here is a sample code: i tried to run the intent as a part of shortcut through back tap from my ios device, This works fine if the device is unlocked, but if the device is in locked state,…
1
vote
0 answers

iOS: AppIntent parameter supporting multiple types of data?

I currently have 3 AppIntents that each support different kinds of input data. I'd prefer to have a single AppIntent that can receive anything - similar to the AirDrop shortcut action. I know I can create an AppEntity with custom data, but I'm…
jfaust
  • 21
  • 2
1
vote
1 answer

App Intent definition changed, but it is not synced to the Shortcuts app

I'm changing an App Intent definition, but the changes are not reflected in the Shortcuts app when I try to use my changed intent as an action in a Shortcut. And trying to run the shortcut gives an exception: [Execution] perform() returned types…
hungrxyz
  • 745
  • 11
  • 20
1
vote
0 answers

How to use IntentDonationManager.donate(intent:)

I just use code like this IntentDonationManager.shared.donate(intent: AddRopeShortcut()) And intent never appear neither in spotlight nor Siri widget nor Notification Center
1
vote
1 answer

How to work with user location in iOS 16 App Intents?

I'm working on an App Shortcut using the new AppIntents framework in iOS 16 and I'm trying to get the user's current location, everything is enabled and set-up correctly with the permissions func perform() async throws -> some IntentResult { …
David
  • 148
  • 1
  • 1
  • 8
1
vote
0 answers

App is not listed in Focus filter Settings if we build using XCode 14.1

We have implemented the focus filter using the AppEntity param type, Our app is visible in focus filter settings if we build/run with XCode 14 or 14.0.1. But the same is not if we run using the latest XCode 14.1. Note: Our code base has both…
Raja Sekar
  • 11
  • 2
1
vote
0 answers

iOS 16 Siri AppIntents work when saying "Hey Siri", but not when holding phone power button

I have a simple list app called 'SiriTest', which I can add items to by saying "Hey Siri, add to SiriTest'. I will be prompted to speak the item, and the item will be added, Siri will speak confirmation and close. If I instead activate Siri by…
dredzed
  • 11
  • 2
0
votes
0 answers

Parameterized App Shortcut isn’t showing up correctly in Spotlight (iOS 17)

I’m working on supporting iOS 17’s new Shortcuts features. I have a multiple App Shortcuts including one that launches the app in a selected tab. The tab selection is done via a custom AppView enum that conforms to the AppEnum protocol. The problem…
alexkaessner
  • 1,966
  • 1
  • 14
  • 39
0
votes
0 answers

Custom group/category for the „Find Entity“ actions

I’ve seen that some of Apple’s apps group the automatically generated "Find XYZ" actions into custom categories. For example Safari, Calendar, or Reminders do this. I know that you can group AppIntents into custom categories via: static let…
alexkaessner
  • 1,966
  • 1
  • 14
  • 39
0
votes
0 answers

What AppIntent Parameter type to use for a Note?

I'm trying to receive a list of Notes from Apple Notes as a shortcut parameter. Some testing shows that I can receive them as String or IntentFile (RTF format), like so: struct NoteIntent: AppIntent { static var title: LocalizedStringResource =…
villasv
  • 6,304
  • 2
  • 44
  • 78