---
title: openAppWhenRun
framework: appintents
role: symbol
role_heading: Type Property
path: appintents/appintent/openappwhenrun
---

# openAppWhenRun

A Boolean property that tells the system to consider the app intent even if its app is not in the foreground.

## Declaration

```swift
static var openAppWhenRun: Bool { get }
```

## Mentioned in

Responding to the Action button on Apple Watch Ultra

## Discussion

Discussion This property is deprecated. Use supportedModes instead. Setting this property to true generates an error if the app intent runs in an app extension. For backward compatability, you can set this property to true for app intents you run inside your app. For example: @available(*, deprecated) extension OrderSoupIntent {     static var openAppWhenRun: Bool { true } }

## See Also

### Deprecated

- [requestConfirmation(result:confirmationActionName:showPrompt:)](appintents/appintent/requestconfirmation(result:confirmationactionname:showprompt:).md)
- [requestConfirmation(output:confirmationActionName:showPrompt:)](appintents/appintent/requestconfirmation(output:confirmationactionname:showprompt:).md)
