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

# getPendingNotificationRequests(completionHandler:)

Fetches all of your app’s local notifications that are pending delivery.

## Declaration

```swift
func getPendingNotificationRequests(completionHandler: @escaping @Sendable ([UNNotificationRequest]) -> Void)
```

```swift
func pendingNotificationRequests() async -> [UNNotificationRequest]
```

## Parameters

- `completionHandler`: A block for processing notification requests. This block may be executed on a background thread. The block has no return value and takes a single 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 pendingNotificationRequests() async -> [UNNotificationRequest] For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously. Here’s an example that obtains the pending notification requests. let center = UNUserNotificationCenter.current() let requests = await center.pendingNotificationRequests()

## See Also

### Scheduling notifications

- [add(_:withCompletionHandler:)](usernotifications/unusernotificationcenter/add(_:withcompletionhandler:).md)
- [removePendingNotificationRequests(withIdentifiers:)](usernotifications/unusernotificationcenter/removependingnotificationrequests(withidentifiers:).md)
- [removeAllPendingNotificationRequests()](usernotifications/unusernotificationcenter/removeallpendingnotificationrequests().md)
