[问题] app移除时怎么取得UNNoificationContent?

楼主: sdico (文)   2019-07-22 11:42:19
一般app在背景点击local notification会触发
userNotificationCenter(_:didReceive:withCompletionHandler:)
请问如果把app swipe up背景移除
这时点local notification要怎么取得UNNotificationContent?
旧版LocalNotification(ios10以前)是
let key = UIApplication.LaunchOptionsKey.localNotification
if let notification = launchOptions![key] as? UILocalNotification {
}
新的我就不知道了T_T

Links booklink

Contact Us: admin [ a t ] ucptt.com