ScheduledNotificationsViewController shows you all of your pending local notifications in one place, with all the information you need. Tapping on a notification will immediately trigger its delivery, making this small tool invaluable for debugging local notifications.
Medium story here.
Scheduled | Delivered | Tap to trigger |
---|---|---|
import UIKit
import ScheduledNotificationsViewController
// ...somewhere in "Settings" screen:
#if DEBUG
let notificationsVC = ScheduledNotificationsViewController()
self.navigationController?.pushViewController(notificationsVC, animated: true)
#endif
Q: My scheduled notifications list is empty
A: Make sure you have granted notifications permissions to your app on your device. More here: Asking Permission to Use Notifications
Q: I tap on a notification in a list, but nothing shows up
A: Make sure you're using userNotificationCenter(_:willPresent:withCompletionHandler:)
callback in your UNUserNotificationCenterDelegate
. More here: Handling Notifications and Notification-Related Actions (see section "Handle Notifications While Your App Runs in the Foreground")
http://github.com/nicephoton/ScheduledNotificationsViewController.git
.link |
Stars: 171 |
Last commit: 44 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics