iOS 16 Live Activities Lock Screen widget

Good morning,

if I understood correctly, Live Activities will come on a later iOS 16 update and are not present on the current iOS 16 beta. I think that might explain the lack of documentation on the subject.

What I'd like to understand is what could be the best path to take to make sure we're prepared to build a Lock Screen widget with Live Activities.

Is a Home Screen widget a good starting point?

Does anyone know?

Can an Apple engineer shine some light into the topic?

Thank you

Answered by Technology Evangelist in 721773022

Live Activities and the ActivityKit framework are now available in iOS 16 beta 4. An announcement has been posted on News and Updates describing some of the details of the feature, as well as App Store submission.

Please refer to the ActivityKit framework documentation, as well as the “Displaying live data on the Lock Screen with Live Activities“ documentation article for implementation details.

When creating an iOS live activity with Activity.request(attributes: , contentState: initialContentState, pushType: .token ) I get the error: The operation couldn’t be completed. (com.apple.ActivityKit.ActivityInput error 0.). but no error while I change pushType to nil I am sure I have requested Notification with [.sound, .badge, .alert] right

iOS 16 Live Activities Lock Screen widget
 
 
Q