Start a Live Activity from the new ControlWidget

Hello there,

I'm playing around with the new ControlWidget controls and I'd like to know the best approach to launch a Live Activity using these.

It seems to be possible according to its WWDC session but my main question is: Is it only doable using push notifications?

Thank you.

Your control widget just needs to extend from LiveActivityIntent, then you can use the normal controls for managing Live Activities.

struct MyControlWidget: ControlWidget, LiveActivityIntent {
    func perform() {
        // Activity<ActivityType>.request( ... )
    }
}
Start a Live Activity from the new ControlWidget
 
 
Q