<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNUserNotificationCenter/getPendingNotificationRequests(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNUserNotificationCenter(im)getPendingNotificationRequestsWithCompletionHandler:"
  },
  "title" : "getPendingNotificationRequests(completionHandler:)"
}
-->

# getPendingNotificationRequests(completionHandler:)

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

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

## 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.

- requests: An array of [`UNNotificationRequest`](/documentation/UserNotifications/UNNotificationRequest) objects representing the scheduled notification requests. If there are no scheduled requests, this array is empty.

## 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:
> 
> ```swift
> func pendingNotificationRequests() async -> [UNNotificationRequest]
> ```
> 
> For information about concurrency and asynchronous code in Swift, see <doc://com.apple.documentation/documentation/Swift/calling-objective-c-apis-asynchronously>.

Here’s an example that obtains the pending notification requests.

```swift
let center = UNUserNotificationCenter.current()
let requests = await center.pendingNotificationRequests()
```

---

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)