Skip to content

Commit

Permalink
[Chore] #196 로컬 알림 관련 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
EunsuSeo01 committed Oct 23, 2023
1 parent c4c06f9 commit 19edc7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Milestone/Milestone/Global/Support/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class LocalNotificationHelper: NSObject, UNUserNotificationCenterDelegate {

func printPendingNotification() {
UNUserNotificationCenter.current().getPendingNotificationRequests { requests in
print("---Pending Notifications---")
for request in requests {
print("Identifier: \(request.identifier)")
print("Title: \(request.content.title)")
Expand All @@ -113,6 +114,7 @@ class LocalNotificationHelper: NSObject, UNUserNotificationCenterDelegate {
}
}
UNUserNotificationCenter.current().getDeliveredNotifications { requests in
print("---Delivered Notifications---")
for req in requests {
let request = req.request
print("Identifier: \(request.identifier)")
Expand Down

0 comments on commit 19edc7f

Please sign in to comment.