How do i integrate with live activities?
Generated on 8/3/2024
1 search
To integrate with live activities, you can follow several steps and best practices as outlined in various sessions from WWDC 2024. Here are the key points:
-
Broadcast Updates to Live Activities:
- Use push notifications to keep your live activity up to date. When a live activity starts, your app requests a push token from ActivityKit, which is then used to send updates via the Apple Push Notification service (APNs). This ensures that the live activity has the latest information.
- For more details, you can refer to the session Broadcast updates to your Live Activities.
-
Bring Your Live Activity to Apple Watch:
- Your iOS live activity will automatically appear in the smart stack on Apple Watch with watchOS 11. You can customize the view for the smart stack and ensure it stays up to date.
- You can preview how your live activity will appear on Apple Watch using Xcode and make necessary adjustments.
- For more information, check out the session Bring your Live Activity to Apple Watch.
-
Design Live Activities for Apple Watch:
- Learn about the different ways to interact with live activities on Apple Watch, including the smart stack and compact views.
- Understand the visual guidelines to craft a great live activity experience.
- For a detailed guide, see the session Design Live Activities for Apple Watch.
-
What’s New in watchOS 11:
- Live activities from your iOS app are available in the smart stack on Apple Watch, even if you don't have a watchOS app. You can provide custom content for the smart stack by specifying that your live activity supports the small supplemental activity family.
- For an overview, refer to the session What’s new in watchOS 11.
Relevant Sessions:
- Broadcast updates to your Live Activities
- Bring your Live Activity to Apple Watch
- Design Live Activities for Apple Watch
- What’s new in watchOS 11
By following these sessions, you can effectively integrate and customize live activities for both iOS and watchOS, ensuring a seamless and up-to-date user experience.
What’s new in watchOS 11
Explore new opportunities on Apple Watch, including bringing Double Tap support to your watchOS app, making your Smart Stack widgets even more relevant and interactive, and displaying your iOS Live Activities in the Smart Stack.
Broadcast updates to your Live Activities
With broadcast push notifications, your app can send updates to thousands of Live Activities with a single request. We’ll discover how broadcast push notifications work between an app, a server, and the Apple Push Notification service, then we’ll walk through best practices for this capability and how to implement it.
Bring your Live Activity to Apple Watch
Bring Live Activities into the Smart Stack on Apple Watch with iOS 18 and watchOS 11. We’ll cover how Live Activities are presented on Apple Watch, as well as how you can enhance their presentation for the Smart Stack. We’ll also explore additional considerations to ensure Live Activities on Apple Watch always present up-to-date information.
Design Live Activities for Apple Watch
Starting in watchOS 11, Live Activities from your iOS app will automatically appear in the Smart Stack on a connected Apple Watch. Learn how to optimize the layout of your Live Activity for the wrist, and provide the right level of information and interactivity at the right time.