We have implemented AppIntents in iOS16 and the shortcuts are working fine when manually added in shortcuts app. But the shortcuts created programaticaly using AppShortcutsProvider with AppShortcutsPhrases are not at all recognized by Siri.
The AppIntents core feature is zero setup shortcuts, but it is not working as expected. Please suggest any fix for this.
Sample Code:
struct NotesShortcutProvider: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {
let shortcut = AppShortcut(intent: ShowTodayTasks(), phrases: ["Show today tasks","show my tasks today"])
return [shortcut]
}
}
Tried with applicationName as well but no luck.