Save 37% off PRO during our Black Friday Sale! »

User Notification for UX!

028088964f255d677d471558da865b72?s=47 sato-shin
September 17, 2019
140

User Notification for UX!

028088964f255d677d471558da865b72?s=128

sato-shin

September 17, 2019
Tweet

Transcript

  1. 6TFS/PUJpDBUJPOGPS69 TBUPTIJO!8*5$P-UE

  2. 6TFS/PUJpDBUJPOͬͯʁ

  3. 6TFS/PUJpDBUJPOͬͯʁ

  4. 6TFS/PUJpDBUJPOͬͯʁ ΞϓϦ͕'PSFHSPVOE͡Όͳ͍ঢ়گͰ΋ ϢʔβʹΞϓϩʔνͰ͖Δํ๏ͷҰͭ

  5. 6TFS/PUJpDBUJPOͷछྨ w-PDBM/PUJpDBUJPO w"QQ಺Ͱఆٛͨ͠৚݅ ࣌ؒ৔ॴ Ͱड৴ w3FNPUF/PUJpDBUJPO w"1/Tܦ༝Ͱड৴

  6. 6TFS/PUJpDBUJPOͷ༻్ྫ w༧ఆ͍ͯͨ͠λεΫͷϦϚΠϯυ w4/4Ͱͷ༑ਓ͔Βͷϝοηʔδͷड৴ w߸֎ʗϐοΫΞοϓχϡʔε wήʔϜΠϕϯτ։࢝ͷࠂ஌ ͳͲ

  7. 6TFS/PUJpDBUJPO͸Ϣʔβʹ
 Կ͔ΞΫγϣϯΛ͍ͤͨ͞߹ਤ

  8. 6TFS/PUJpDBUJPO͸Ϣʔβʹ
 Կ͔ΞΫγϣϯΛ͍ͤͨ͞߹ਤ w༧ఆ͍ͯͨ͠λεΫͷϦϚΠϯυ w4/4Ͱͷ༑ਓ͔Βͷϝοηʔδड৴ w߸֎ʗϐοΫΞοϓχϡʔε wήʔϜΠϕϯτ։࢝ͷࠂ஌ wλεΫΛ࣮ߦ͢Δ wϝοηʔδΛݟΔʗฦ৴͢Δ wχϡʔεΛݟΔ wΠϕϯτʹࢀՃ͢Δ

  9. ࣮ࡍʹ৯ࣄه࿥ΞϓϦΛ
 ྫʹߟ͑ͯΈΔ

  10. ৯ࣄه࿥ΞϓϦʮ͚͋͢Μʯ ࣌఺ 
 ໿ສਓ͕ར༻͢Δ
 ৯ࣄه࿥ʹಛԽͨ͠
 ϔϧεέΞΞϓϦ J04%$4JMWFSεϙϯαʔ Λ͍͖ͤͯͨͩ͞·ͨ͠

  11. ฐࣾͷએ఻Ͱͨ͠ ࣍ϖʔδ͔Βຊ୊ʹ໭Γ·͢

  12. 6TFS/PUJpDBUJPOΛ λοϓͨ͠ΒͲ͏ͳΔʁ

  13. 6TFS/PUJpDBUJPOΛ λοϓͨ͠ΒͲ͏ͳΔʁ Ϣʔβ͸ே৯Λه࿥͍ͨ͠ (PPE
 ࠓ೔ͷே৯Λه࿥͢Δ
 ϑϩʔ΁ભҠ͢Δ #BE
 ΞϓϦΛىಈ͢Δ͚ͩ

  14. 6TFS/PUJpDBUJPOΛ
 λοϓͨ࣌͠ͷڍಈͷ࣮૷ @available(iOS 10.0, *) func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive

    response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { // ௨஌Λλοϓͨ࣌͠ͷॲཧΛॻ͘ // ... // end completionHandler() } ˞ΞϓϦ͕'PSFHSPVOEͷ࣌ʹ6TFS/PUJpDBUJPOΛड͚औͬͨ࣌ͷ࣮૷͸ͪ͜Β func userNotificationCenter(UNUserNotificationCenter, willPresent: UNNotification, withCompletionHandler: (UNNotificationPresentationOptions) -> Void) UNUserNotificationCenterDelegate
  15. 6TFS/PUJpDBUJPOΛλοϓ͠ͳ͍Ͱɺ ΞΫγϣϯ͕׬ྃͨ͠Βʁ ௨ৗ௨ΓɺΞϓϦΛىಈ͠ ே৯Λه࿥ͨ͠৔߹

  16. 6TFS/PUJpDBUJPOΛλοϓ͠ͳ͍Ͱɺ ΞΫγϣϯ͕׬ྃͨ͠Βʁ Ϣʔβ͸ே৯Λه࿥ͨ͠ (PPE
 ΞΫγϣϯ͕׬͍ྃͯ͠ΔͷͰ
 ௨஌Λഁغ͢Δ #BE
 ௨஌Λͦͷ··ʹ͓ͯ͘͠

  17. 6TFS/PUJpDBUJPOΛ
 ഁغ͢Δ࣮૷ let identifiers: [String] = ["id1", "id2", …] UNUserNotificationCenter.current()

    .removeDeliveredNotifications(withIdentifiers: [identifiers])
  18. ·ͱΊ w6TFS/PUJpDBUJPOʹରԠ͢Δ
 ΞΫγϣϯΛ࣮૷͠Α͏ w6TFS/PUJpDBUJPOʹରԠ͢Δ
 ΞΫγϣϯ͕׬ྃʗܧଓෆՄೳʹͳͬͨΒɺ
 ഁغ͠Α͏ χϡʔεͷ഑৴ظ͕ؒऴΘͬͨ౳

  19. None