Siri not prompting to enable for AppIntent

We're trying to add an AppIntent to our very complex and large app that works with Siri.

What we've found through numerous different configuration attempts is that when the Siri toggle is turned off on in the Shortcuts app for our app, when we speak our phrase to Siri we get this prompt: "<App> hasn't added support for that with Siri." with an "Open <App>" button.

When we speak the phrase while the app is open, we get the prompt that says "Turn on "<App>" shortcuts with Siri?" with a "Turn On" button.

When the Siri toggle is turned on for our app in the Shortcuts app, all of our phrases work as expected.

Is there some kind of configuration we're missing? There doesn't seem to be a lot of documentation. We've tried to match an example app's approach (AcceleratingAppInteractionsWithAppIntents) to no avail.

Our app intents live in an xcframework if that makes a difference, but we've also tried moving it out of xcframework without success.

This is a blocker to us shipping this feature. Thanks!

The most common things people overlook are that you should have an AppShortcutProvider declared in your main app target. Further, you should have your App Shortcuts localized via a string catalog specifically named AppShortcuts.xcstrings. With that, the testing tool available under Product > App Shortcuts Preview should produce results for your specific intents and phrases, which is a good way to determine if your app is configured correctly or not.

— Ed Ford,  DTS Engineer

Hi, thanks so much Ed for your feedback!

Wanted to follow up.

We made several changes to align with your recommendations:

  • Moved the AppShortcutProvider and the Intent itself out of the xcframework, but left the AppIntentsPackage configuration as it was.
  • Had to use an AppShortcuts.strings file instead of an .xcstrings file because we still support iOS 16. The compiler was catching AppShortcut related phrase issues which was helpful.

These changes made it so the Product > App Shortcuts Preview tool in Xcode was functional and behaved as expected.

However, we still largely had our issue of the "Turn on "<App>" shortcuts with Siri?" prompt not reliably appearing.

We did figure out a hack we could use as a workaround. By adding two duplicate structs of our 1 app shortcut to the AppShortcutsProvider, we were drastically able to improve the reliability of the prompt appearing. For context, we only had 1 app shortcut before.

This has allowed us to ship, but brought one side effect: the prompt that asks if you want to turn on shortcuts for Siri shows the phrase in gray text twice now. As that's the only issue with the hack, we felt we could live with that.

We do have one more issue that wasn't as highly prioritized: if you try this on the iPad, you get the turn on shortcuts with Siri prompt like we want, but as soon as you turn it on, any subsequent use of the shortcut throws this error: "<App> hasn't added support for that with Siri."

As iPad is such a small segment of our user base, our decision makers decided to ship anyway, but it would be ideal to figure out a fix at some point.

Still, hopefully this feedback can help improve the product! Thanks so much!

Siri not prompting to enable for AppIntent
 
 
Q