---
title: didEnterBackgroundNotification
framework: watchkit
role: symbol
role_heading: Type Property
path: watchkit/wkapplication/didenterbackgroundnotification
---

# didEnterBackgroundNotification

A message indicating that the watchOS app transitioned from the foreground to the background.

## Declaration

```swift
class let didEnterBackgroundNotification: NSNotification.Name
```

## Discussion

Discussion When creating an app that uses the SwiftUI App protocol to manage your life cycle, use the onChange(of:perform:) modifier and the scenePhase environment value to monitor life cycle changes when possible. For more information, see Building a watchOS app.

## See Also

### Observing messages from the notification center

- [didFinishLaunchingNotification](watchkit/wkapplication/didfinishlaunchingnotification.md)
- [didBecomeActiveNotification](watchkit/wkapplication/didbecomeactivenotification.md)
- [willResignActiveNotification](watchkit/wkapplication/willresignactivenotification.md)
- [willEnterForegroundNotification](watchkit/wkapplication/willenterforegroundnotification.md)
