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
330
FirebaseでPush通知を送る
taminif
October 02, 2016
Tweet
Share
More Decks by taminif
See All by taminif
「とりあえずAI」が招く悲劇〜私がAIで生産性を下げるまでの話〜 / The tragedy caused by "AI for now" - The story of how I used AI to reduce my productivity
taminif
1
200
PuppeteerとPlaywrightの15日間の演劇 / relation of Puppeteer and Playwright
taminif
3
2.2k
Redashの開発はじめました / How to get started Redash development
taminif
0
760
私の生活を変えたHeadless Chrome / Headless Chrome who changed my life
taminif
3
500
WebSocketをiOSに持ち込んで辛い思いをした経験がありますか!? / have you painful experience in web socket?
taminif
3
5.8k
LINEで馬券を購入する / Purchase a betting ticket at LINE
taminif
1
1.6k
SkyWayで一年間運用してきたけどWebRTCってつらいんじゃないの
taminif
2
1k
オンライン英会話とSkyWay
taminif
0
520
オンライン英会話アプリとSkyWay
taminif
0
460
Other Decks in Technology
See All in Technology
La gouvernance territoriale des données grâce à la plateforme Terreze
bluehats
0
150
自作JSエンジンに推しプロポーザルを実装したい!
sajikix
1
170
職種の壁を溶かして開発サイクルを高速に回す~情報透明性と職種越境から考えるAIフレンドリーな職種間連携~
daitasu
0
150
20250903_1つのAWSアカウントに複数システムがある環境におけるアクセス制御をABACで実現.pdf
yhana
3
540
Rustから学ぶ 非同期処理の仕組み
skanehira
1
130
[ JAWS-UG 東京 CommunityBuilders Night #2 ]SlackとAmazon Q Developerで 運用効率化を模索する
sh_fk2
3
380
【実演版】カンファレンス登壇者・スタッフにこそ知ってほしいマイクの使い方 / 大吉祥寺.pm 2025
arthur1
1
780
CDK CLIで使ってたあの機能、CDK Toolkit Libraryではどうやるの?
smt7174
4
130
なぜSaaSがMCPサーバーをサービス提供するのか?
sansantech
PRO
8
2.8k
roppongirb_20250911
igaiga
1
210
品質視点から考える組織デザイン/Organizational Design from Quality
mii3king
0
200
LLMを搭載したプロダクトの品質保証の模索と学び
qa
0
1k
Featured
See All Featured
Bash Introduction
62gerente
615
210k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Thoughts on Productivity
jonyablonski
70
4.8k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Context Engineering - Making Every Token Count
addyosmani
1
35
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
Statistics for Hackers
jakevdp
799
220k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.8k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Typedesign – Prime Four
hannesfritz
42
2.8k
Being A Developer After 40
akosma
90
590k
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Ͱ࣮͞ΕͨΧελϚΠζͰ͖Δ௨࣍ճ Ҏ߱ɾɾɾ
͋Γ͕ͱ͏͍͟͝·ͨ͠