Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
iOS 10 Notifications
Search
hirayaCM
June 24, 2016
Programming
590
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
iOS 10 Notifications
iOS 10 の通知の新機能の概要について解説しました。
hirayaCM
June 24, 2016
Other Decks in Programming
See All in Programming
IBM Bob でAI駆動開発『QC-Playbook』
ichirokano2
0
110
[JA] Domain Modeling with Vanilla Rails: 「操作」から再考するRailsの設計論
yasaichi
1
280
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
430
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
420
Next.js: The final boss of Web Performance
guaca
0
260
ActionController meets Protocol Buffers
sorah
0
530
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
phperだってパンチカードでコーディングしたい
o0h
PRO
0
340
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
カツオ、ご期待ください
suneo3476
0
190
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
Featured
See All Featured
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
A designer walks into a library…
pauljervisheath
211
25k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Odyssey Design
rkendrick25
PRO
2
870
Designing Experiences People Love
moore
143
24k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
570
Prompt Engineering for Job Search
mfonobong
0
520
Test your architecture with Archunit
thirion
2
2.4k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
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!