Can Live Activity be started from shortcut?

Is there any way a live activity could be started from a shortcut? The example live activities (ordering a ride share, viewing sports scores etc) are good fits for shortcuts and live activities but I'm not able to start a live activity from a shortcut using the new app intents framework.

Is it possible to start a live activity from an app intent shortcut?

Yes it is. Make your AppIntent conform to the LiveActivityStartingIntent and call your start live activity logic in the perform method.

@vinced45 I'm struggling to get that working, have you tried it out before?

A LiveActivityStartingIntent is fairly straightforward, here is basic setup of what one may look like in your code (with a parameter for use in Shortcuts or elsewhere).

    
    static var title: LocalizedStringResource = "Memo Status Activity"
    
    @Parameter(title: "isRecording")
    var isRecording: Bool
    
    func perform() async throws -> some IntentResult {
        return .result()
    }
}
Can Live Activity be started from shortcut?
 
 
Q