<!--
{
  "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/UNNotificationRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNNotificationRequest"
  },
  "title" : "UNNotificationRequest"
}
-->

# UNNotificationRequest

A request to schedule a local notification, which includes the content of the notification and the trigger conditions for delivery.

```
class UNNotificationRequest
```

## Overview

Create a [`UNNotificationRequest`](/documentation/UserNotifications/UNNotificationRequest) object when you want to schedule the delivery of a local notification. A notification request object contains a [`UNNotificationContent`](/documentation/UserNotifications/UNNotificationContent) object with the payload and the [`UNNotificationTrigger`](/documentation/UserNotifications/UNNotificationTrigger) object with the conditions that trigger the delivery of the notification. To schedule the delivery of your notification, pass your request object to the [`add(_:withCompletionHandler:)`](/documentation/UserNotifications/UNUserNotificationCenter/add(_:withCompletionHandler:)) method of the shared user notification center object.

After scheduling a request, you interact with `UNNotificationRequest` objects in the following ways:

- View your app’s pending notifications by calling the [`getPendingNotificationRequests(completionHandler:)`](/documentation/UserNotifications/UNUserNotificationCenter/getPendingNotificationRequests(completionHandler:)) method of your shared user notification center object.
- When the system delivers a notification to your app, the provided [`UNNotification`](/documentation/UserNotifications/UNNotification) object contains a `UNNotificationRequest` object that you can inspect to get the notification details.
- Use the request’s [`identifier`](/documentation/UserNotifications/UNNotificationRequest/identifier) to remove delivered notifications from Notification Center.

When receiving a local or remote notification, use the provided [`UNNotificationRequest`](/documentation/UserNotifications/UNNotificationRequest) object to fetch details about the notification.

```swift
// Create a content object with the message to convey.
let content = UNMutableNotificationContent()
content.title = "Lunch time"
content.body = "Food is cooked... let's eat!"
// Create a notification trigger for 60 seconds in the future.
let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 60.0, repeats: false)
// Create the request with the content and the trigger.
let request = UNNotificationRequest(identifier: "com.example.mynotification", content: content, trigger: trigger)
```

## Topics

### Creating a Notification Request

[`init(identifier:content:trigger:)`](/documentation/UserNotifications/UNNotificationRequest/init(identifier:content:trigger:))

Creates a notification request object that you use to schedule a notification.

### Getting the Request Details

[`identifier`](/documentation/UserNotifications/UNNotificationRequest/identifier)

The unique identifier for this notification request.

[`content`](/documentation/UserNotifications/UNNotificationRequest/content)

The content associated with the notification.

[`trigger`](/documentation/UserNotifications/UNNotificationRequest/trigger)

The conditions that trigger the delivery of the notification.



---

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)