---
title: "userNotificationCenter(_:didDeliver:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsusernotificationcenterdelegate/usernotificationcenter(_:diddeliver:)"
---

# userNotificationCenter(_:didDeliver:)

Sent to the delegate when a notification delivery date has arrived.

## Declaration

```swift
optional func userNotificationCenter(_ center: NSUserNotificationCenter, didDeliver notification: NSUserNotification)
```

## Parameters

- `center`: The user notification center.
- `notification`: The user notification object.

## Discussion

Discussion This method is always called, regardless of your application state and even if you deliver the user notification yourself using deliver(_:). This delegate method is invoked before the userNotificationCenter(_:shouldPresent:) delegate method.

## See Also

### User Notification Delivery Information

- [userNotificationCenter(_:didActivate:)](foundation/nsusernotificationcenterdelegate/usernotificationcenter(_:didactivate:).md)
