Post

Replies

Boosts

Views

Activity

App shortcuts are not getting added inside Shortcuts App using App Intent.
Hi, We are trying to add our application shortcuts using below code but it's not getting reflected in Shortcuts App and so Siri feature is not working for our app. We followed the same approach mentioned in WWDC 2022 session. Kindly suggest the fix. struct StartMeditationIntent: AppIntent {     static let title: LocalizedStringResource = "Start Meditation Session"     func perform() async throws -> some IntentPerformResult {         let answer: LocalizedStringResource = "Session Started"         let dialogIntent  = IntentDialog(answer)         return .finished(dialog: dialogIntent)     } } struct LibraryAutoShortCuts: AppShortcutsProvider {     static var appShortcuts: [AppShortcut] {         AppShortcut(intent: StartMeditationIntent(), phrases: ["Start Meditation"])     } }
2
0
1.5k
Jun ’22