作者:
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