I've got Siri Shortcuts implemented on iOS 12 by donating custom intentions. They show up (with the developer settings turned on) right away on the lock screen as expected, and they launch the app.
I can't seem to get them to show up on the watch app now, and the WWDC videos are very light on actual code samples. I'm taking my intent subclasses and generating relevant shortcuts from them, but no matter what they won't show up in the Siri Watch Face.
let resultsIntent = SeeResultsIntent()
let resultsShortcut = INRelevantShortcut(shortcut: INShortcut(intent: resultsIntent)!)
resultsShortcut.relevanceProviders = [INDateRelevanceProvider(start: Date().dateByAdding(minutes: 5), end: Date().dateByAdding(days: 1))]
INRelevantShortcutStore.default.setRelevantShortcuts([resultsShortcut]) { error in
if let error = error {
NSLog("Error setting relevant shortcuts: \(error)")
} else {
NSLog("Siri watch face shortcuts loaded")
}
I've tried running this same code on the iOS app and on the watch app extension, doesn't seem to matter. How can I debug this? How can I test this and verify they're being recorded? Do the settings in the iOS Developer menu about showing donated intents affect the Siri watch face as well? Where do I go from here?