     ) async -> Bool {
         self.delegate ?= delegate
 
-        let status = await authorizationStatus()
         let oldCategories = await notificationCategories()
         let newCategories = Set(
             categories.map {

        sound: UNNotificationSound? = .default,
        attachments: [UNNotificationAttachment]? = nil,
        timeInterval: TimeInterval = 0,
        repeats: Bool = false,
        identifier: String = UUID().uuidString,
        category: String = UNUserNotificationCenter.mainCategoryIdentifier,

    /// Retrieve the pending or delivered notification request.
    ///
    /// - Parameters:
    ///   - id: The identifier for the requests.
    func get(withIdentifier id: String) async -> UNNotificationRequest? {
        await notificationRequests().first { $0.identifier == id }
    }

    /// Retrieve the pending or delivered notification requests.
    ///
    /// - Parameters:
    ///   - ids: The identifiers for the requests.
    func get(withIdentifiers ids: [String]) async -> [UNNotificationRequest] {
        await notificationRequests().filter { ids.contains($0.identifier) }
    }

    /// Determines if the pending notification request exists.
    ///
    /// - Parameters:
    ///   - id: The identifier for the requests.
    func exists(withIdentifier id: String) async -> Bool {
        await get(withIdentifier: id) != nil
    }
}

public extension UNUserNotificationCenter {
    /// Constants that indicate the importance and delivery timing of a notification.
    enum InterruptionLevel {
        /// The system adds the notification to the notification list without lighting up the screen or playing a sound.
        case passive

        /// The system presents the notification immediately, lights up the screen, and can play a sound, but won’t break through system notification controls.
        case timeSensitive
    }

    /// Schedules a local notification for delivery.
    ///
    /// - Parameters:
