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:

  1. 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.
  2. 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.
  3. 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.
  4. 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:

  1. Broadcast updates to your Live Activities
  2. Bring your Live Activity to Apple Watch
  3. Design Live Activities for Apple Watch
  4. 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.