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
FirebaseでPush通知を送る
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
taminif
October 02, 2016
Technology
2
330
FirebaseでPush通知を送る
taminif
October 02, 2016
Tweet
Share
More Decks by taminif
See All by taminif
React Native New Architecture 移行実践報告
taminif
1
190
「とりあえずAI」が招く悲劇〜私がAIで生産性を下げるまでの話〜 / The tragedy caused by "AI for now" - The story of how I used AI to reduce my productivity
taminif
1
270
PuppeteerとPlaywrightの15日間の演劇 / relation of Puppeteer and Playwright
taminif
3
2.3k
Redashの開発はじめました / How to get started Redash development
taminif
0
780
私の生活を変えたHeadless Chrome / Headless Chrome who changed my life
taminif
3
520
WebSocketをiOSに持ち込んで辛い思いをした経験がありますか!? / have you painful experience in web socket?
taminif
3
6.1k
LINEで馬券を購入する / Purchase a betting ticket at LINE
taminif
1
1.6k
SkyWayで一年間運用してきたけどWebRTCってつらいんじゃないの
taminif
2
1k
オンライン英会話とSkyWay
taminif
0
530
Other Decks in Technology
See All in Technology
Context Engineeringの取り組み
nutslove
0
260
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
5
1.5k
日本語テキストと音楽の対照学習の技術とその応用
lycorptech_jp
PRO
1
410
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
430
Tebiki Engineering Team Deck
tebiki
0
24k
Webhook best practices for rock solid and resilient deployments
glaforge
1
250
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
5
2.5k
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
140
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
670
Mosaic AI Gatewayでコーディングエージェントを配るための運用Tips / JEDAI 2026 新春 Meetup! AIコーディング特集
genda
0
150
Agile Leadership Summit Keynote 2026
m_seki
1
260
茨城の思い出を振り返る ~CDKのセキュリティを添えて~ / 20260201 Mitsutoshi Matsuo
shift_evolve
PRO
1
170
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
44
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
117
110k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
190
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
WENDY [Excerpt]
tessaabrams
9
36k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
110
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
430
A Tale of Four Properties
chriscoyier
162
24k
Fireside Chat
paigeccino
41
3.8k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Un-Boring Meetings
codingconduct
0
200
Transcript
FirebaseͰPush௨ ΛૹΔ ؔϞόΠϧΞϓϦݚڀձ #18 2016/09/28 େౡ ޫو
ࣗݾհ • ΣϒϦΦגࣜձࣾ • WEBΤϯδχΞ • ΞϓϦΤϯδχΞ ʢࣗশʣ • 8݄ʹΞϓϦΛ
ϦϦʔε͠·ͨ͠ʂ
Firebaseͱ
Firebaseͱ • Google͕ఏڙ͢ΔmBaas • Analytics, Database, Notifications etc • ࠓ6݄ʹGoogleαʔϏεͱ౷߹
• ແྉʂʂ
ຊͦͷதͰɺ Firebase NotificationsΛ
Firebase Notifications • GUI(ίϯιʔϧ)ͰPush௨͕ૹΕΔ • ؆қతͳϝοηʔδ͔͠ૹΕͳ͍ • தFCM (Firebase Cloud
Messaging)
ඞཁͳͷ
1. Firebase Project
Firebase Project • GoogleΞΧϯτͰFirebase ConsoleʹϩάΠϯ • ϓϩδΣΫτΛ࡞ • ͘͠ɺGoogleϓϩδΣΫτ͔ΒΠϯϙʔτ •
ίϯιʔϧͰGoogleService-Info.plistΛμϯ ϩʔυ͠ɺXcodeϓϩδΣΫτʹஔ͘
2. APNs
APNs • Apple Push Notification service Certificates • Apple Developer͔ΒμϯϩʔυՄೳ
• Push NotificationΛONʹͨ͠ͷ • FirebaseެࣜͷGUIDES͕ࢀߟʹͳΓ·͢
3. Firebase Messaging SDK
Firebase Messaging SDK • CocoaPodsͰΠϯετʔϧՄೳ • Firebase/Core • Firebase/Messaging •
AppDelegate.swiftͰfirebaseΛimport͠ɺ ConfigureΛηοτ -> ࣍ͷϖʔδ
Source Code(Swift3) func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?)
-> Bool { // Override point for customization after application launch. // Use Firebase library to configure APIs FIRApp.configure() return true }
Push௨ͷ࣮ߦ
ίϯιʔϧ͔Β ௨ʹදࣔ͢Δϝοηʔδ Ұཡʹදࣔ͢Δϥϕϧ ૹ৴λΠϛϯά ૹ৴ର
·ͱΊ
·ͱΊ • ͍͔ͭ͘༻ҙ͢Δͷ͋Δ͕؆୯ʹPush௨͕ ༻Ͱ͖Δɻ • ແྉʂʂ • iOS10Ͱ࣮͞ΕͨΧελϚΠζͰ͖Δ௨࣍ճ Ҏ߱ɾɾɾ
͋Γ͕ͱ͏͍͟͝·ͨ͠