Slide 14
Slide 14 text
2. UserNotifications, UserNotificationsUI
• ௨ڐՄ͞Εͨ͜ͱΛCallBackϋϯυϧͰ͖
ΔΑ͏ʹͳΔʂʂʂ
=> ѻ͍͘͢ͳͬͨʂʂʂʂ
UNUserNotificationCenter.current().requestAuthorization([.alert, .so
und, .badge]) { (granted, error) in
if granted == true {
//ڐՄ͞Ε͍ͯΔ
} else {
//ڐՄ͞Ε͍ͯͳ͍
}
}
//ࠓͷઃఆঢ়ଶͷऔಘͰ͖Δ
UNUserNotificationCenter.current().getNotificationSettings {
(settings) in
}