NSUserActivityTypeLiveActivity
A string that the system passes to the app on launch from a Live Activity that doesn’t provide a URL.
Declaration
let NSUserActivityTypeLiveActivity: StringDiscussion
In many cases, you use widgetURL(_:) to allow users to tap a Live Activity and open a screen in the app with functionality that best fits the Live Activity. If you don’t use the widgetURL(_:) modifier to provide a URL, the system launches your app and passes NSUserActivityTypeLiveActivity as the activityType of NSUserActivity upon launch. Check for this value on launch to open a screen in your app that fits the context of the active Live Activity.