---
title: foreground
framework: usernotifications
role: symbol
role_heading: Type Property
path: usernotifications/unnotificationactionoptions/foreground
---

# foreground

The action causes the app to launch in the foreground.

## Declaration

```swift
static var foreground: UNNotificationActionOptions { get }
```

## Discussion

Discussion When the user selects an action containing this option, the system brings the app to the foreground, asking the user to unlock the device as needed. Use this option for actions that require the user to interact further with your app. Do not use this option simply to bring your app to the foreground.

## See Also

### Constants

- [authenticationRequired](usernotifications/unnotificationactionoptions/authenticationrequired.md)
- [destructive](usernotifications/unnotificationactionoptions/destructive.md)
