Suggesting a shortcut doesn't work

Hi,

I have a breathing app that includes a sleep breathing exercise, and I want to suggest that as a "Wind Down" shortcut. I have set the shortcut availability to sleepMindfulness but whenever I do
INVoiceShortcutCenter.shared.setShortcutSuggestions([shortcut]), I get the following error in Xcode:

Code Block
[default] +[LSApplicationProxy applicationProxyFor*] is not a supported method for getting the LSApplicationProxy for the current process, use +[LSBundleProxy bundleProxyForCurrentProcess] instead.


I am currently on Xcode 12b4. Any help would be appreciated, thanks!
Same here. Also getting a hard crash when trying to add shortcutAvailability options too. :-(
@jpdev001 did you find a solution to this yet?
You can safely ignore the message about LSApplicationProxy. Our sample code project for Wind Down generates it too.

As to a crash, compare your implementation to what the sample project is doing, as I can't reproduce the crash using the sample. If that doesn't help, you can also post a fully symbolicated crash log here as an attachment.
@edford, even if I ignore the warning, the shortcut never shows up in the Wind Down shortcuts list. Here's the crash log:


With beta 5, the crash doesn't occur anymore. However, the suggestion still doesn't work and now I am getting the following warnings in Xcode console.




No crash on beta 5, but suggestion doesn't work. Tested in Simulator and on iPhone 11.

(Donating via NSUserActivity)
Using INIntent (INInteraction) instead of NSUserActivity to suggest shortcuts works perfectly.

Using INIntent (INInteraction) instead of NSUserActivity to suggest shortcuts works perfectly.

I guess it's a start. Was advertised at WWDC2020 to work with NSUserActivity. We'll see what beta 7 brings...
I have the same problem. The shortcuts that are suggested with NSUserActivity (via INVoiceShortcutCenter.shared.setShortcutSuggestions(shortcutsToSuggest)) are not showing up in the Siri Wind Down list. They do show up in the "All other apps" section.

Did anyone fix it?

Also, the sample code project for Wind Down  (https://developer.apple.com/documentation/sirikit/adding_shortcuts_for_wind_down) doesn't include an example of suggested shortcuts that are created from NSUserActivity instances.

Help?
Suggesting a shortcut doesn't work
 
 
Q