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
2.1k
Redashの開発はじめました / How to get started Redash development
taminif
0
720
私の生活を変えたHeadless Chrome / Headless Chrome who changed my life
taminif
3
430
WebSocketをiOSに持ち込んで辛い思いをした経験がありますか!? / have you painful experience in web socket?
taminif
3
5.4k
LINEで馬券を購入する / Purchase a betting ticket at LINE
taminif
1
1.5k
SkyWayで一年間運用してきたけどWebRTCってつらいんじゃないの
taminif
2
960
オンライン英会話とSkyWay
taminif
0
460
オンライン英会話アプリとSkyWay
taminif
0
410
Mac1台でアプリを作る時代再び
taminif
0
410
Other Decks in Technology
See All in Technology
PHPerのための計算量入門/Complexity101 for PHPer
hanhan1978
5
210
レンジャーシステムズ | 会社紹介(採用ピッチ)
rssytems
0
200
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
490
podman_update_2024-12
orimanabu
1
280
OpenAIの蒸留機能(Model Distillation)を使用して運用中のLLMのコストを削減する取り組み
pharma_x_tech
4
570
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
UI State設計とテスト方針
rmakiyama
2
650
Oracle Cloudの生成AIサービスって実際どこまで使えるの? エンジニア目線で試してみた
minorun365
PRO
4
290
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
120
PHPからGoへのマイグレーション for DMMアフィリエイト
yabakokobayashi
1
170
Featured
See All Featured
Building Adaptive Systems
keathley
38
2.3k
Making the Leap to Tech Lead
cromwellryan
133
9k
We Have a Design System, Now What?
morganepeng
51
7.3k
BBQ
matthewcrist
85
9.4k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
Documentation Writing (for coders)
carmenintech
66
4.5k
Music & Morning Musume
bryan
46
6.2k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
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Ͱ࣮͞ΕͨΧελϚΠζͰ͖Δ௨࣍ճ Ҏ߱ɾɾɾ
͋Γ͕ͱ͏͍͟͝·ͨ͠