diff --git a/AcaMate.xcodeproj/project.xcworkspace/xcuserdata/tanine.xcuserdatad/UserInterfaceState.xcuserstate b/AcaMate.xcodeproj/project.xcworkspace/xcuserdata/tanine.xcuserdatad/UserInterfaceState.xcuserstate index 0263ac9..946ca47 100644 Binary files a/AcaMate.xcodeproj/project.xcworkspace/xcuserdata/tanine.xcuserdatad/UserInterfaceState.xcuserstate and b/AcaMate.xcodeproj/project.xcworkspace/xcuserdata/tanine.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/AcaMate/0. Setup/AppDelegate.swift b/AcaMate/0. Setup/AppDelegate.swift index 98eb458..7a3a4e0 100644 --- a/AcaMate/0. Setup/AppDelegate.swift +++ b/AcaMate/0. Setup/AppDelegate.swift @@ -100,6 +100,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate { // 앱 켜져있을때 알럿 받으면 직접 로컬로 알림 띄워주는 곳 func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification) async -> UNNotificationPresentationOptions { let userInfo = notification.request.content.userInfo + printLog(userInfo) if let apsData = userInfo["aps"] as? [AnyHashable: Any], let badge = apsData["badge"] as? Int { @@ -111,6 +112,18 @@ extension AppDelegate: UNUserNotificationCenterDelegate { } } + if let bid = userInfo["bid"] as? String { + printLog("bid = \(bid)") + } + + if let content = userInfo["content"] as? String { + printLog("content = \(content)") + } + + if let pid = userInfo["pid"] as? String { + printLog("pid = \(pid)") + } + if #available(iOS 14.0, *) { return [[.list,.banner,.sound]] } else {