<!--
{
  "availability" : [
    "macOS: 10.8.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserNotificationCenterDelegate/userNotificationCenter(_:didDeliver:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSUserNotificationCenterDelegate(im)userNotificationCenter:didDeliverNotification:"
  },
  "title" : "userNotificationCenter(_:didDeliver:)"
}
-->

# userNotificationCenter(_:didDeliver:)

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

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

## Parameters

`center`

The user notification center.

`notification`

The user notification object.

## Discussion

This method is always called, regardless of your application state and even if you deliver the user notification yourself using [`deliver(_:)`](/documentation/Foundation/NSUserNotificationCenter/deliver(_:)).

This delegate method is invoked before the [`userNotificationCenter(_:shouldPresent:)`](/documentation/Foundation/NSUserNotificationCenterDelegate/userNotificationCenter(_:shouldPresent:)) delegate method.

---

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)