---
title: "getDeliveredNotifications(completionHandler:)"
framework: usernotifications
role: symbol
role_heading: Instance Method
path: "usernotifications/unusernotificationcenter/getdeliverednotifications(completionhandler:)"
---

# getDeliveredNotifications(completionHandler:)

Fetches all of your app’s delivered notifications that are still present in Notification Center.

## Declaration

```swift
func getDeliveredNotifications(completionHandler: @escaping @Sendable ([UNNotification]) -> Void)
```

```swift
func deliveredNotifications() async -> [UNNotification]
```

## Parameters

- `completionHandler`: The block to execute with the results. This block may be executed on a background thread. The block has no return value and takes the following parameter:

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func deliveredNotifications() async -> [UNNotification] For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously. This method executes asynchronously, returning immediately and executing the provided block on a background thread when the results become available.

## See Also

### Removing delivered notifications

- [removeDeliveredNotifications(withIdentifiers:)](usernotifications/unusernotificationcenter/removedeliverednotifications(withidentifiers:).md)
- [removeAllDeliveredNotifications()](usernotifications/unusernotificationcenter/removealldeliverednotifications().md)
