INVoiceShortcutCenter returns invalid / nil shortcuts

Originator:spencer.samuel1
Number:rdar://FB7716578 Date Originated:27/05/2020
Status:Open Resolved:
Product:SiriKit Product Version:iOS 13
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
 
This function call ALWAYS returns nil for both the shortcut and the error:

    INVoiceShortcutCenter.shared.getVoiceShortcut(with: uuid) { (shortcut, error) in
        // ...
    }

It doesn't take much at all to reproduce. Add a shortcut to an app using a specific UUID. Try to get the shortcut later using this function. It's always nil; both the shortcut and the error.

Additional documentation on this particular bug (which appears to be widespread):
- https://stackoverflow.com/questions/57982907/ios-13-getvoiceshortcut-not-returning-invoiceshortcut-just-nil
- https://stackoverflow.com/questions/56884855/invoiceshortcutcenter-shared-getallvoiceshortcuts-does-not-return-anything-in-io

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!