iOS List Pending Notifications

You may want to show a list of the upcoming application notifications, you can do this by using the following code.

import UserNotifications

UNUserNotificationCenter.current().getPendingNotificationRequests { requests in
    for request in requests {
        print(request)
    }
}