<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/NSUserActivityTypeLiveActivity",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "c:@NSUserActivityTypeLiveActivity"
  },
  "title" : "NSUserActivityTypeLiveActivity"
}
-->

# NSUserActivityTypeLiveActivity

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

```
let NSUserActivityTypeLiveActivity: String
```

## Discussion

In many cases, you use  <doc://com.apple.documentation/documentation/SwiftUI/View/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 <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/activityType>
of <doc://com.apple.documentation/documentation/Foundation/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)