The Live Activities function on the new Lock Screen will be available for iOS 16.1 beta 1, which was confirmed by Apple, but developers may try it out and see how it might be implemented on their apps.
Apple has released the documentation on how to display live data on the Lock Screen with Live Activities on iOS 16.1.
Live Activities can include access to the most current iPhone data, such as text, pictures, and maps. Depending on whether your app already has a widget, you may add additional code to your existing widget extension. ActivityKits'' main goal is to provide a life cycle for each Live Activity: You can request, update, and close a Live Activity.
With iOS 16, a Live Activity can be active for up to eight hours unless the app or the user explicitly terminates it. After this limit, the system automatically ends a Live Activity if the user or the user hasn''t ended it. In this end state, the Live Activity is still on the lock screen for up to four additional hours before the system removes it. As a result, a Live Activity is still on the lock screen for up to 12 hours.
Each Live Activity has its own sandbox, and unlike a widget, it cant access the network or receive location updates. To update the dynamic data of an active Live Activity,developers will need to use the ActivityKit framework in their app or allow their Live Activities to receive remote push notifications.
During the WWDC 2022 keynote, Apple demonstrated that Live Activities may be used for an Uber ride or to see if your Starbucks order is ready.