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
Grafana:建立系統全知視角的捷徑
blueswen
0
330
ぼくの開発環境2026
yuzneri
0
230
Fragmented Architectures
denyspoltorak
0
160
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
570
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.2k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
Oxlintはいいぞ
yug1224
5
1.3k
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
AI巻き込み型コードレビューのススメ
nealle
1
280
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Done Done
chrislema
186
16k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
420
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
Evolving SEO for Evolving Search Engines
ryanjones
0
120
A designer walks into a library…
pauljervisheath
210
24k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
180
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
440
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1k
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
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!