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
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
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
180
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
280
Oxlintはいいぞ
yug1224
5
1.3k
そのAIレビュー、レビューしてますか? / Are you reviewing those AI reviews?
rkaga
6
4.6k
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
2.5k
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
460
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
5
710
Patterns of Patterns
denyspoltorak
0
1.4k
OCaml 5でモダンな並列プログラミングを Enjoyしよう!
haochenx
0
140
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.3k
Featured
See All Featured
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Six Lessons from altMBA
skipperchong
29
4.1k
Facilitating Awesome Meetings
lara
57
6.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
Designing Experiences People Love
moore
144
24k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
0
2.3k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
66
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
140
What does AI have to do with Human Rights?
axbom
PRO
0
2k
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!