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
taminif
October 02, 2016
Technology
2
310
FirebaseでPush通知を送る
taminif
October 02, 2016
Tweet
Share
More Decks by taminif
See All by taminif
PuppeteerとPlaywrightの15日間の演劇 / relation of Puppeteer and Playwright
taminif
3
2k
Redashの開発はじめました / How to get started Redash development
taminif
0
710
私の生活を変えたHeadless Chrome / Headless Chrome who changed my life
taminif
3
420
WebSocketをiOSに持ち込んで辛い思いをした経験がありますか!? / have you painful experience in web socket?
taminif
3
5.3k
LINEで馬券を購入する / Purchase a betting ticket at LINE
taminif
1
1.5k
SkyWayで一年間運用してきたけどWebRTCってつらいんじゃないの
taminif
2
950
オンライン英会話とSkyWay
taminif
0
460
オンライン英会話アプリとSkyWay
taminif
0
410
Mac1台でアプリを作る時代再び
taminif
0
400
Other Decks in Technology
See All in Technology
生成AIが変えるデータ分析の全体像
ishikawa_satoru
0
130
スクラムチームを立ち上げる〜チーム開発で得られたもの・得られなかったもの〜
ohnoeight
2
350
Platform Engineering for Software Developers and Architects
syntasso
1
520
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
270
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
1k
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
870
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.8k
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
430
AIチャットボット開発への生成AI活用
ryomrt
0
170
OTelCol_TailSampling_and_SpanMetrics
gumamon
1
160
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
6
640
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
120
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1366
200k
Side Projects
sachag
452
42k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
GraphQLとの向き合い方2022年版
quramy
43
13k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
A Philosophy of Restraint
colly
203
16k
A designer walks into a library…
pauljervisheath
204
24k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
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Ͱ࣮͞ΕͨΧελϚΠζͰ͖Δ௨࣍ճ Ҏ߱ɾɾɾ
͋Γ͕ͱ͏͍͟͝·ͨ͠