$30 off During Our Annual Pro Sale. View Details »
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.3k
About Flutter Architecture
wasabeef
1
290
2023 Flutter/Dart Summary
wasabeef
0
96
I/O Extended 2023 - Dart と Flutter の新機能
wasabeef
0
200
I/O Extended 2023 - Flutter 活用事例
wasabeef
10
3k
What it Takes to be a Flutter Developer
wasabeef
0
210
FlutterKaigi 2022 Keynote
wasabeef
1
640
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
宅宅自以為的浪漫:跟 AI 一起為自己辦的研討會寫一個售票系統
eddie
0
500
【CA.ai #3】Google ADKを活用したAI Agent開発と運用知見
harappa80
0
300
【CA.ai #3】ワークフローから見直すAIエージェント — 必要な場面と“選ばない”判断
satoaoaka
0
240
Building AI Agents with TypeScript #TSKaigiHokuriku
izumin5210
6
1.3k
ZOZOにおけるAI活用の現在 ~モバイルアプリ開発でのAI活用状況と事例~
zozotech
PRO
8
5.5k
ID管理機能開発の裏側 高速にSaaS連携を実現したチームのAI活用編
atzzcokek
0
220
AWS CDKの推しポイントN選
akihisaikeda
1
240
FluorTracer / RayTracingCamp11
kugimasa
0
230
社内オペレーション改善のためのTypeScript / TSKaigi Hokuriku 2025
dachi023
1
580
堅牢なフロントエンドテスト基盤を構築するために行った取り組み
shogo4131
8
2.3k
エディターってAIで操作できるんだぜ
kis9a
0
710
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
120
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
Raft: Consensus for Rubyists
vanstee
141
7.2k
A designer walks into a library…
pauljervisheath
210
24k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Bash Introduction
62gerente
615
210k
How to Think Like a Performance Engineer
csswizardry
28
2.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Designing Experiences People Love
moore
143
24k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.7k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
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