Skip to main content

Live Activities API returns with iOS 16.1 beta 1, here’s how it works

One of the coolest features Apple will introduce with the iOS 16 cycle is the Live Activities function on the new Lock Screen. After the company claimed it wouldn’t be available with version 16.0, Apple seeded iOS 16.1 beta 1 with the Live Activities API, which means developers can try it out and see how they can implement the function on their apps.

With the framework now available, Apple also published the documentation on how to display live data on the Lock Screen with Live Activities on iOS 16.1.

Live Activities display and update an app’s most current data on the iPhone Lock Screen. This allows people to see live information they care about the most at a glance. To offer Live Activities, add code to your existing widget extension or create a new widget extension if your app doesn’t already include one. Live Activities use WidgetKit functionality and SwiftUI for their user interface on the Lock Screen. ActivityKit’s role is to handle the life cycle of each Live Activity: You use its API to request, update, and end a Live Activity.

With iOS 16, a Live Activity can be active for up to eight hours, unless the app or the user explicitly ends it. After this limit, the system automatically ends a Live Activity if the user or the app hasn’t ended it. In this end state, the Live Activity remains on the Lock Screen for up to four additional hours before the system removes it. The user can also choose to remove it. As a result, a Live Activity remains on the Lock Screen for a maximum of 12 hours.

Each Live Activity runs in its own sandbox, and — unlike a widget — it can’t access the network or receive location updates. To update the dynamic data of an active Live Activity, developers will have to use the ActivityKit framework in their app or allow their Live Activities to receive remote push notifications.

Apple has demonstrated during the WWDC 2022 keynote that Live Activities can work for an Uber ride or see whether your Starbucks order is ready.

If you spot any changes in today’s new iOS 16.1 beta 1 or the other new betas from Apple today, let us know in the comments below or on Twitter @9to5Mac. Stay tuned for our full hands-on coverage of today’s releases right here at 9to5Mac, today and through the rest of the week.

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Mac — experts who break news about Apple and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Mac on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Manage push notifications

notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications
notification icon
We would like to show you notifications for the latest news and updates.
notification icon
You are subscribed to notifications