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
Introduction to Firebase Notifications
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Daichi Furiya (Wasabeef)
June 10, 2016
Programming
1
1.4k
Introduction to Firebase Notifications
Introduction to Firebase Notifications
Daichi Furiya (Wasabeef)
June 10, 2016
Tweet
Share
More Decks by Daichi Furiya (Wasabeef)
See All by Daichi Furiya (Wasabeef)
DevFest Tokyo 2025 - Flutter のアプリアーキテクチャ現在地点
wasabeef
6
2.5k
About Flutter Architecture
wasabeef
1
300
2023 Flutter/Dart Summary
wasabeef
0
110
I/O Extended 2023 - Dart と Flutter の新機能
wasabeef
0
210
I/O Extended 2023 - Flutter 活用事例
wasabeef
10
3.1k
What it Takes to be a Flutter Developer
wasabeef
0
220
FlutterKaigi 2022 Keynote
wasabeef
1
660
Flutter Hooks を使ったアプリ開発 / App Development with the Flutter Hooks
wasabeef
2
1.5k
Flutter 2021 の振り返りと今後のアプリ開発に向けて / Looking back on Flutter 2021 and for future app development.
wasabeef
4
2.2k
Other Decks in Programming
See All in Programming
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
200
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.8k
CSC307 Lecture 09
javiergs
PRO
1
830
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
CSC307 Lecture 05
javiergs
PRO
0
500
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
260
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
130
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
460
組織で育むオブザーバビリティ
ryota_hnk
0
170
「ブロックテーマでは再現できない」は本当か?
inc2734
0
970
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
1.1k
AIエージェントのキホンから学ぶ「エージェンティックコーディング」実践入門
masahiro_nishimi
5
450
Featured
See All Featured
The browser strikes back
jonoalderson
0
370
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Mind Mapping
helmedeiros
PRO
0
81
Building a Scalable Design System with Sketch
lauravandoore
463
34k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
130
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
Joys of Absence: A Defence of Solitary Play
codingconduct
1
290
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.5k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
110
Practical Orchestrator
shlominoach
191
11k
Transcript
Firebase Notifications wasabeef shibuya.apk #8 at Google Japan
About me Daichi Furiya wasabeef @wasabeef_jp CyberAgent, Inc.
Firebase
Firebase https://firebase.google.com/
Analytics
Crash Reporting
Notifications
Firebase Notifications
Why?
Create Android app
Create Android app
Create Android app
Dependencies dependencies { // ... compile 'com.google.firebase:firebase-messaging:9.0.2' }
FirebaseMessagingService public class MyMessagingService extends FirebaseMessagingService { @Override public void
onMessageReceived(RemoteMessage msg) { sendNotification(msg.getNotification().getBody()); } private void sendNotification(String body) { // NotificationManager#notify } }
FirebaseInstancedIdService public class MyIdService extends FirebaseInstanceIdService { @Override public void
onTokenRefresh() { sendRegistrationToServer(refreshedToken); } private void sendRegistrationToServer(String token) { // send to your server } }
Topic findViewById(R.id.button).setOnClickListener(v -> { FirebaseMessaging.getInstance() .subscribeToTopic("mytopic"); // FirebaseMessaging.getInstance() .unsubscribeFromTopic("mytopic"); });
Compose message
Status
Conclusion
Thank you. twitter.com/wasabeef_jp wasabeef.jp github.com/wasabeef