How do I adopt Live Activity to appear on watchOS 11's Smart Stack?

Generated on 8/1/2024

1 search

To adopt Live Activity to appear on watchOS 11's Smart Stack, follow these steps:

  1. Automatic Appearance: Your existing iOS Live Activity will automatically appear in the Smart Stack on Apple Watch if you have already implemented it for the Dynamic Island on iPhone. This requires no changes to your code (What’s new in watchOS 11).

  2. Custom Content: To provide custom content for the Smart Stack on Apple Watch, specify that your Live Activity supports the small supplemental activity family. This is done by adding the supplementalActivityFamilies modifier to the activity configuration. The system will then prefer your custom content view over the Dynamic Island views (What’s new in watchOS 11).

  3. Preview in Xcode: Use the Xcode preview to see how your Live Activity will appear in the Smart Stack. You can do this by adding the supplementalActivityFamilies modifier and using the preview canvas to visualize the different view styles (Bring your Live Activity to Apple Watch).

  4. Launch Watch App: If you have a watchOS app, you can opt to launch it from a tap on the Live Activity in the Smart Stack. This is done by adding a value for the supportsLaunchForLiveActivity attribute type key in the Info.plist section of your watch app target (Bring your Live Activity to Apple Watch).

For a detailed walkthrough, you can refer to the session Bring your Live Activity to Apple Watch and Design Live Activities for Apple Watch.

Relevant Sessions

  1. What’s new in watchOS 11
  2. Bring your Live Activity to Apple Watch
  3. Design Live Activities for Apple Watch