Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOS 10 Notifications
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
hirayaCM
June 24, 2016
Programming
0
580
iOS 10 Notifications
iOS 10 の通知の新機能の概要について解説しました。
hirayaCM
June 24, 2016
Tweet
Share
Other Decks in Programming
See All in Programming
Automatic Grammar Agreementと Markdown Extended Attributes について
kishikawakatsumi
0
190
360° Signals in Angular: Signal Forms with SignalStore & Resources @ngLondon 01/2026
manfredsteyer
PRO
0
130
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
280
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
280
CSC307 Lecture 01
javiergs
PRO
0
690
CSC307 Lecture 05
javiergs
PRO
0
500
並行開発のためのコードレビュー
miyukiw
0
170
QAフローを最適化し、品質水準を満たしながらリリースまでの期間を最短化する #RSGT2026
shibayu36
2
4.4k
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
710
Basic Architectures
denyspoltorak
0
670
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Why Our Code Smells
bkeepers
PRO
340
58k
Faster Mobile Websites
deanohume
310
31k
Tell your own story through comics
letsgokoyo
1
810
Accessibility Awareness
sabderemane
0
51
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Paper Plane (Part 1)
katiecoart
PRO
0
4.2k
Practical Orchestrator
shlominoach
191
11k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.5k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
AI: The stuff that nobody shows you
jnunemaker
PRO
2
260
Transcript
iOS 10 Notifications AKIBA.swift #3 Shingo Hiraya @classmethod, Inc
User Notifications framework
User Notifications framework • iOS 10 ͰՃ • ϩʔΧϧɾϦϞʔτ௨ͷͨΊͷ framework
User Notifications framework • 19ݸͷΫϥε • UNUserNotificationCenter ← ϝΠϯ •
UNNotificationContent • UNNotificationTrigger • …
User Notifications framework • ௨Λ͏ํ๏ • iOS 9 Ҏલ •
UIApplication ͷػೳΛ༻ • iOS 10 Ҏ߱ • User Notifications framework ͷػೳΛ༻
User Notifications framework • ఏڙ͞ΕΔओͳػೳ (࣍ষҎ߱Ͱઆ໌) • ௨ͷ༻ڐՄϦΫΤετ • ௨ͷ࡞
• ௨ͷϋϯυϦϯά • etc …
௨ͷ༻ڐՄϦΫΤετ
௨ͷ༻ڐՄϦΫΤετ • ௨Λ༻͢ΔલʹϢʔβʔͷڐՄΛಘΔඞ ཁ͕͋Δ • ڐՄΛಘΔखॱ iOS 9 Ҏલͱେମಉ͡
※͜Ε iOS 9 ͷεΫγϣ
௨ͷ༻ڐՄϦΫΤετ • iOS 10 Ͱͷվળ • μΠΞϩάʹର͢Δૢ࡞ΛϋϯυϦϯάՄೳ ※͜Ε iOS
9 ͷεΫγϣ
௨ͷ࡞
ϩʔΧϧ௨ͷ࡞ (iOS 10 Ҏ߱) 1. Content ͱ Trigger ͔Β Request
࡞ Request $POUFOU 5SJHHFS
ϩʔΧϧ௨ͷ࡞ (iOS 10 Ҏ߱) 1. Content ͱ Trigger ͔Β Request
࡞ • Content : λΠτϧɺຊจͳͲ Request $POUFOU 5SJHHFS
ϩʔΧϧ௨ͷ࡞ (iOS 10 Ҏ߱) 1. Content ͱ Trigger ͔Β Request
࡞ • Trigger : ௨ͷൃՐ݅ • ࢦఆ࣌ؒޙ or ࢦఆ࣌ or ࢦఆॴ Request $POUFOU 5SJHHFS
ϩʔΧϧ௨ͷ࡞ (iOS 10 Ҏ߱) 1. Content ͱ Trigger ͔Β Request
࡞ 2. UNUserNotificationCenter ʹ Request Ճ Request $POUFOU 5SJHHFS UNUserNotification Center
ϦϞʔτ௨ͷ࡞ • iOS 9 Ҏલͷखॱͱಉ༷ • ূ໌ॻɺσόΠετʔΫϯऔಘɺૹ৴खॱ 4FSWFS4JEF"QQ J04"QQ
"1/T 6*"QQMJDBUJPO τʔΫϯ ϖΠϩʔυ
௨ͷϋϯυϦϯά
௨ͷϋϯυϦϯά • ର: ϩʔΧϧ௨ɾϦϞʔτ௨ • ϋϯυϦϯάՄೳͳΠϕϯτ • ௨ͷड৴ (ΞϓϦ͕ foreground
ͷ߹) • ௨Λλοϓͯ͠ΞϓϦΛىಈ • etc …
௨ͷϋϯυϦϯάํ๏ • iOS 9 Ҏલ • UIApplicationDelegate ͷϝιουΛ༻ • iOS
10 Ҏ߱ • UNUserNotificationCenterDelegate ͷϝ ιουΛ༻
༻͢Δϝιουͷύλʔϯ iOS 9 Ҏલ Πϕϯτ ΞϓϦͷঢ়ଶ ௨ͷछྨ ϝιου Foreground
Background Suspended Local Remote ௨ͷड৴ ̋ - - ̋ - application(UIApplication, didReceive: UILocalNotification) ̋ - - - ̋ application(UIApplication, didReceiveRemoteNotification: [NSObject : AnyObject]) ௨͔Βͷ ىಈ - ̋ - ̋ - application(UIApplication, didReceive: UILocalNotification) - ̋ - - ̋ application(UIApplication, didReceiveRemoteNotification: [NSObject : AnyObject]) - - ̋ ̋ ̋ application(_:didFinishLaunching WithOptions:)
༻͢Δϝιουͷύλʔϯ iOS 9 Ҏલ Πϕϯτ ΞϓϦͷঢ়ଶ ௨ͷछྨ ϝιου Foreground
Background Suspended Local Remote ௨ͷड৴ ̋ - - ̋ - application(UIApplication, didReceive: UILocalNotification) ̋ - - - ̋ application(UIApplication, didReceiveRemoteNotification: [NSObject : AnyObject]) ௨͔Βͷ ىಈ - ̋ - ̋ - application(UIApplication, didReceive: UILocalNotification) - ̋ - - ̋ application(UIApplication, didReceiveRemoteNotification: [NSObject : AnyObject]) - - ̋ ̋ ̋ application(_:didFinishLaunching WithOptions:) ΞϓϦͷঢ়ଶɺ௨ͷछྨʹΑͬͯ ༻͢ΔϝιουΛ͍͚͍ͯͨ…
༻͢Δϝιουͷύλʔϯ iOS 10 Ҏ߱ Πϕϯτ ΞϓϦͷঢ়ଶ ௨ͷछྨ ϝιου Foreground
Background Suspended Local Remote ௨ͷड৴ ̋ - - ̋ ̋ userNotificationCenter(_:willPres ent:withCompletionHandler:) ௨͔Βͷ ىಈ - ̋ ̋ ̋ ̋ userNotificationCenter(_:didRece ive:withCompletionHandler:)
༻͢Δϝιουͷύλʔϯ iOS 10 Ҏ߱ Πϕϯτ ΞϓϦͷঢ়ଶ ௨ͷछྨ ϝιου Foreground
Background Suspended Local Remote ௨ͷड৴ ̋ - - ̋ ̋ userNotificationCenter(_:willPres ent:withCompletionHandler:) ௨͔Βͷ ىಈ - ̋ ̋ ̋ ̋ userNotificationCenter(_:didRece ive:withCompletionHandler:) ΠϕϯτͷछྨʹΑͬͯ 2ͭͷϝιουΛ͍͚Δ͚ͩ!
·ͱΊ
·ͱΊ • iOS 10 Ͱ௨ͷͨΊͷϑϨʔϜϫʔΫՃ • User Notifications framework •
iOS 9 Ҏલ : UIApplication ͷػೳΛ༻ • iOS 10 Ҏ߱ : User Notifications framework ͷ ػೳΛ༻
ࢀߟࢿྉ • API Reference • User Notifications framework • WWDC
2016 Session • “Introduction to Notifications”
ؔ࿈ใ • Developers.IO • iOS User Notifications framework Series •
۩ମతͳ࣮ͳͲΛղઆ
Thank you!