Upgrade to Pro — share decks privately, control downloads, hide ads and more …

即時通知を導入する際に考えるべきこと

aoi
September 12, 2022

 即時通知を導入する際に考えるべきこと

aoi

September 12, 2022
Tweet

More Decks by aoi

Other Decks in Technology

Transcript

  1. ଈ࣌௨஌ͷ࣮૷ʢϩʔΧϧʣ import UserNotifications let content = UNMutableNotificationContent() content.title = "Reminder"

    content.body = "Take medicine." content.interruptionLevel = .timeSensitive let trigger = UNCalendarNotificationTrigger( dateMatching: date, repeats: false ) let request = UNNotificationRequest( identifier: identifier, content: content, trigger: trigger )
  2. ଈ࣌௨஌ͷ࣮૷ʢϦϞʔτʣ { "aps" : { "alert" : { "title" :

    "Reminder", "body" : "Take medicine." }, "interruption-level" : "time-sensitive" } }