---
title: NSUserActivityTypeLiveActivity
framework: widgetkit
role: symbol
role_heading: Global Variable
path: widgetkit/nsuseractivitytypeliveactivity
---

# NSUserActivityTypeLiveActivity

A string that the system passes to the app on launch from a Live Activity that doesn’t provide a URL.

## Declaration

```swift
let NSUserActivityTypeLiveActivity: String
```

## Discussion

Discussion 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.

## See Also

### Live Activity setup

- [Displaying live data with Live Activities](activitykit/displaying-live-data-with-live-activities.md)
- [ActivityKit](activitykit.md)
- [Creating a widget extension](widgetkit/creating-a-widget-extension.md)
- [Emoji Rangers: Supporting Live Activities, interactivity, and animations](widgetkit/emoji-rangers-supporting-live-activities-interactivity-and-animations.md)
- [ActivityConfiguration](widgetkit/activityconfiguration.md)
- [DynamicIsland](widgetkit/dynamicisland.md)
- [ActivityPreviewViewKind](widgetkit/activitypreviewviewkind.md)
- [ActivityFamily](widgetkit/activityfamily.md)
