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
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.1k
About Flutter Architecture
wasabeef
1
280
2023 Flutter/Dart Summary
wasabeef
0
89
I/O Extended 2023 - Dart と Flutter の新機能
wasabeef
0
190
I/O Extended 2023 - Flutter 活用事例
wasabeef
10
3k
What it Takes to be a Flutter Developer
wasabeef
0
210
FlutterKaigi 2022 Keynote
wasabeef
1
620
Flutter Hooks を使ったアプリ開発 / App Development with the Flutter Hooks
wasabeef
2
1.4k
Flutter 2021 の振り返りと今後のアプリ開発に向けて / Looking back on Flutter 2021 and for future app development.
wasabeef
4
2.2k
Other Decks in Programming
See All in Programming
Node-REDのノードの開発・活用事例とコミュニティとの関わり(Node-RED Con Nagoya 2025)
404background
0
100
Amazon ECS Managed Instances が リリースされた!キャッチアップしよう!! / Let's catch up Amazon ECS Managed Instances
cocoeyes02
0
110
Vueのバリデーション、結局どれを選べばいい? ― 自作バリデーションの限界と、脱却までの道のり ― / Which Vue Validation Library Should We Really Use? The Limits of Self-Made Validation and How I Finally Moved On
neginasu
2
1.7k
品質ワークショップをやってみた
nealle
0
650
Building, Deploying, and Monitoring Ruby Web Applications with Falcon (Kaigi on Rails 2025)
ioquatix
4
2.6k
フロントエンド開発のためのブラウザ組み込みAI入門
masashi
7
3.6k
NIKKEI Tech Talk#38
cipepser
0
320
組込みだけじゃない!TinyGo で始める無料クラウド開発入門
otakakot
2
380
ALL CODE BASE ARE BELONG TO STUDY
uzulla
28
6.8k
Leading Effective Engineering Teams in the AI Era
addyosmani
7
670
テーブル定義書の構造化抽出して、生成AIでDWH分析を試してみた / devio2025tokyo
kasacchiful
0
330
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
200
Featured
See All Featured
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
Producing Creativity
orderedlist
PRO
348
40k
Building an army of robots
kneath
306
46k
Visualization
eitanlees
150
16k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Building a Modern Day E-commerce SEO Strategy
aleyda
44
7.9k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6k
Writing Fast Ruby
sferik
630
62k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
640
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