<!--
{
  "availability" : [
    "iOS: 8.0.0 - 10.0.0",
    "iPadOS: 8.0.0 - 10.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIUserNotificationActivationMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIUserNotificationActivationMode"
  },
  "title" : "UIUserNotificationActivationMode"
}
-->

# UIUserNotificationActivationMode

Constants indicating whether the app should activate to the foreground or background.

```
enum UIUserNotificationActivationMode
```

## Topics

### Constants

[`UIUserNotificationActivationModeForeground`](/documentation/UIKit/UIUserNotificationActivationMode/foreground)

Activate the app and put it in the foreground.

[`UIUserNotificationActivationModeBackground`](/documentation/UIKit/UIUserNotificationActivationMode/background)

Activate the app and put it in the background. If the app is already in the foreground, it remains in the foreground.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)