Slide 12
Slide 12 text
update pending no,fica,ons
// ৽͍͠contentΛͭ͘Δ
let content = UNMutableNotificationContent()
content.title = "Hello"
content.body = "This is a more big news!"
content.sound = UNNotificationSound.default()
let trigger = UNTimeIntervalNotificationTrigger.init(timeInterval: 5, repeats: false)
// ৽͍͠requestΛͭ͘Δ
let newRequest = UNNotificationRequest.init(identifier: "NewsUpdate", content: content, trigger: trigger)
// ৽͍͠requestΛͭ͘Δʢݹ͍ͷΛdelete͢Δඞཁͳ͍ʣ
UNUserNotificationCenter.current().add(newRequest) { error in
// error
}