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
User Notification for UX!
Search
sato-shin
September 17, 2019
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
User Notification for UX!
sato-shin
September 17, 2019
More Decks by sato-shin
See All by sato-shin
Goビルドを理解し、 CI/CDの高速化に挑む
satoshin
0
380
DateComponentsと仲良くなる
satoshin
3
3.7k
Bitriseのビルド回数が 10倍以上になって変わったコト
satoshin
1
470
Pull Request Trigger について ~Expose for Pull Request?~
satoshin
1
150
Using various views on Notification Content app extension
satoshin
2
1.2k
Getting step count on iOS
satoshin
4
3.3k
Featured
See All Featured
Information Architects: The Missing Link in Design Systems
soysaucechin
0
960
Joys of Absence: A Defence of Solitary Play
codingconduct
1
390
Rails Girls Zürich Keynote
gr2m
96
14k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
GitHub's CSS Performance
jonrohan
1033
470k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
140
Context Engineering - Making Every Token Count
addyosmani
9
960
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
230
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
580
Site-Speed That Sticks
csswizardry
13
1.2k
Transcript
6TFS/PUJpDBUJPOGPS69 TBUPTIJO!8*5$P-UE
6TFS/PUJpDBUJPOͬͯʁ
6TFS/PUJpDBUJPOͬͯʁ
6TFS/PUJpDBUJPOͬͯʁ ΞϓϦ͕'PSFHSPVOE͡Όͳ͍ঢ়گͰ ϢʔβʹΞϓϩʔνͰ͖Δํ๏ͷҰͭ
6TFS/PUJpDBUJPOͷछྨ w-PDBM/PUJpDBUJPO w"QQͰఆٛͨ݅͠ ࣌ؒॴ Ͱड৴ w3FNPUF/PUJpDBUJPO w"1/Tܦ༝Ͱड৴
6TFS/PUJpDBUJPOͷ༻్ྫ w༧ఆ͍ͯͨ͠λεΫͷϦϚΠϯυ w4/4Ͱͷ༑ਓ͔Βͷϝοηʔδͷड৴ w߸֎ʗϐοΫΞοϓχϡʔε wήʔϜΠϕϯτ։࢝ͷࠂ ͳͲ
6TFS/PUJpDBUJPOϢʔβʹ Կ͔ΞΫγϣϯΛ͍ͤͨ͞߹ਤ
6TFS/PUJpDBUJPOϢʔβʹ Կ͔ΞΫγϣϯΛ͍ͤͨ͞߹ਤ w༧ఆ͍ͯͨ͠λεΫͷϦϚΠϯυ w4/4Ͱͷ༑ਓ͔Βͷϝοηʔδड৴ w߸֎ʗϐοΫΞοϓχϡʔε wήʔϜΠϕϯτ։࢝ͷࠂ wλεΫΛ࣮ߦ͢Δ wϝοηʔδΛݟΔʗฦ৴͢Δ wχϡʔεΛݟΔ wΠϕϯτʹࢀՃ͢Δ
࣮ࡍʹ৯ࣄهΞϓϦΛ ྫʹߟ͑ͯΈΔ
৯ࣄهΞϓϦʮ͚͋͢Μʯ ࣌ ສਓ͕ར༻͢Δ ৯ࣄهʹಛԽͨ͠ ϔϧεέΞΞϓϦ J04%$4JMWFSεϙϯαʔ Λ͍͖ͤͯͨͩ͞·ͨ͠
ฐࣾͷએͰͨ͠ ࣍ϖʔδ͔ΒຊʹΓ·͢
6TFS/PUJpDBUJPOΛ λοϓͨ͠ΒͲ͏ͳΔʁ
6TFS/PUJpDBUJPOΛ λοϓͨ͠ΒͲ͏ͳΔʁ Ϣʔβே৯Λه͍ͨ͠ (PPE ࠓͷே৯Λه͢Δ ϑϩʔભҠ͢Δ #BE ΞϓϦΛىಈ͢Δ͚ͩ
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
6TFS/PUJpDBUJPOΛλοϓ͠ͳ͍Ͱɺ ΞΫγϣϯ͕ྃͨ͠Βʁ ௨ৗ௨ΓɺΞϓϦΛىಈ͠ ே৯Λهͨ͠߹
6TFS/PUJpDBUJPOΛλοϓ͠ͳ͍Ͱɺ ΞΫγϣϯ͕ྃͨ͠Βʁ Ϣʔβே৯Λهͨ͠ (PPE ΞΫγϣϯ͕͍ྃͯ͠ΔͷͰ ௨Λഁغ͢Δ #BE ௨Λͦͷ··ʹ͓ͯ͘͠
6TFS/PUJpDBUJPOΛ ഁغ͢Δ࣮ let identifiers: [String] = ["id1", "id2", …] UNUserNotificationCenter.current()
.removeDeliveredNotifications(withIdentifiers: [identifiers])
·ͱΊ w6TFS/PUJpDBUJPOʹରԠ͢Δ ΞΫγϣϯΛ࣮͠Α͏ w6TFS/PUJpDBUJPOʹରԠ͢Δ ΞΫγϣϯ͕ྃʗܧଓෆՄೳʹͳͬͨΒɺ ഁغ͠Α͏ χϡʔεͷ৴ظ͕ؒऴΘͬͨ
None