how to add a live activity to watch

Generated on 7/31/2024

1 search

To add a live activity to Apple Watch, you can follow the steps outlined in the sessions from WWDC 2024. Here are the key points:

  1. Automatic Appearance: In watchOS 11, your iOS live activity will automatically appear in the smart stack on Apple Watch if you have updated to iOS 18 and watchOS 11. This happens without any changes to your code (What’s new in watchOS 11).

  2. Customizing the View: You can provide a custom live activity view for Apple Watch by using the supplemental activity families modifier. This allows you to specify custom content for the smart stack on Apple Watch (Bring your Live Activity to Apple Watch).

  3. Previewing in Xcode: Use the Xcode preview to see how your live activity will appear in the smart stack. You can add the supplemental activity families modifier to your live activity configuration to customize the view (Bring your Live Activity to Apple Watch).

  4. Handling Updates: Ensure your live activity is showing the most up-to-date information by managing update frequency and budgeting. Updates are synchronized automatically to Apple Watch, and you don't need to manage separate push tokens (Bring your Live Activity to Apple Watch).

  5. Design Guidelines: Follow the visual guidelines for crafting a great live activity, including how to interact with live activities on Apple Watch and ensuring they are timely, relevant, and informative (Design Live Activities for Apple Watch).

For a detailed walkthrough, you can watch the session Bring your Live Activity to Apple Watch where Ann, a frameworks engineer, explains the process step-by-step.