Wind Down

How to show app accroding activity like sleepmindfulness ? I used this code but my didn't show in wind down that category

Code Block
let playSoundIntent = INPlayMediaIntent.init(mediaItems: nil, mediaContainer: mediaItem, playShuffled: false,playbackRepeatMode: .none,resumePlayback: false)
if #available(iOS 14.0, *) {
            playSoundIntent.shortcutAvailability = .sleepMindfulness
        } else {
           
        }
        playSoundIntent.suggestedInvocationPhrase = "Play Calm Exercise"
if let shortcut = INShortcut(intent: playSoundIntent){          INVoiceShortcutCenter.shared.setShortcutSuggestions([shortcut])
        }



Replies

Have you experimented with the complete sample code project?
I have followed this sample code only. But i want my app to be shown on that category without adding any extra shortcut as i am adding "Play Calm Exercise" right now.

If i add this shortcut than ONLY my app and this shortcut is visible under that category. But if i remove this shortcut , both my app and shortcut are removed from the category.