watchOS: Siri Shortcut works within Shortcuts app, but not when activated by voice

My app has a Siri Shortcut that works fine when I execute it from the Shortcuts app on my watch, but if I try to activate it by voice, Siri says: "Sorry, something's wrong. Please try again." and then a second later says "We've had a problem. Please try again."

I'm currently on watchOS 8 beta 6. I last tested this in early July with beta 2 or beta 3 and it was working at that time. I haven't made any changes to the intent extension since then.

The shortcut activates fine by voice on my phone, running iOS 15 beta 6. I'm also able to execute other Shortcuts by voice on my watch.

Has anyone else run into this before? Is there a way to debug the intent extension on the watch, so I can see if any of my intent handler code is even being called?

Answered by y.sakaki in 700539022

I have fixed this issue. Add target membership of intentdefinition file to Watch App and Watch App Extension.

Debugging intents on watchOS is the same process as on iOS — you can launch the intent extension with a phrase set through the scheme editor. If that's insufficient, then the next thing to do is to carefully instrument your intent code using Logger so that the log message go to the system console, visible in the Console app. You'll need to install a watchOS diagnostics profile to see these messages in Console.

Tip: Prefix your log messages something unique like an emoji or a sequence of characters so that they are easy to search for in the Console app.

If you find your code isn't being called, please report a bug through Feedback Assistant and post the FB number here.

If you have found a solution to this problem, please let me know. I have the exact same problem

I deleted it because I made a mistake in the place to write the comment.

Just to follow up for others that are experiencing this issue: Activating our shortcut by voice is still not working with watchOS 8.2. Activating our shortcut from the Shortcuts app on watchOS 8 works fine and activating it by voice still works on watchOS 7.

Unfortunately, I haven't received any followup from Apple, either here on the forums or in FB9541952.

Accepted Answer

I have fixed this issue. Add target membership of intentdefinition file to Watch App and Watch App Extension.

watchOS: Siri Shortcut works within Shortcuts app, but not when activated by voice
 
 
Q