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.2k
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)
About Flutter Architecture
wasabeef
0
17
2023 Flutter/Dart Summary
wasabeef
0
9
I/O Extended 2023 - Dart と Flutter の新機能
wasabeef
0
95
I/O Extended 2023 - Flutter 活用事例
wasabeef
9
2.2k
What it Takes to be a Flutter Developer
wasabeef
0
120
FlutterKaigi 2022 Keynote
wasabeef
1
490
Flutter Hooks を使ったアプリ開発 / App Development with the Flutter Hooks
wasabeef
2
1.2k
Flutter 2021 の振り返りと今後のアプリ開発に向けて / Looking back on Flutter 2021 and for future app development.
wasabeef
4
2k
Flutter Hooks, sometimes Jetpack Compose
wasabeef
3
1.6k
Other Decks in Programming
See All in Programming
Some Quick Ideas To Improve Your Tests ( #jassttokyo )
teyamagu
PRO
2
2.3k
App Router への移行は「改善」となり得るのか?/ Can migration to App Router be an improvement
takefumiyoshii
1
120
DocC Tutorial と TCA におけるテスト機能の紹介
kalupas226
1
330
チームでモデリングを育てるうえで 考えたこと・気づいたこと / Cultivating Modeling in Teams: Thoughts and Insights
mackey0225
5
1.8k
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
2
510
Laravel標準バリデーションでできること
hmb_ok
2
360
Docker ハンズオン / docker-hands-on
suzukihoge
51
16k
DDD, necessary but insufficient: physical design principles for microservices
cer
PRO
0
2.1k
オブジェクトしこう
okuramasafumi
2
130
Open Source Swift Workshop - Foundation and first party libraries
ikesyo
0
100
Parallel Socket Communication in Swift
s_shimotori
0
210
決断するための勇気、そのためのBacklog / Courage to make decisions, Backlog for that.
seike460
PRO
4
1.9k
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
288
19k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
57
14k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
240
1.2M
Teambox: Starting and Learning
jrom
126
8.4k
Writing Fast Ruby
sferik
619
59k
Statistics for Hackers
jakevdp
789
220k
Pencils Down: Stop Designing & Start Developing
hursman
115
11k
Thoughts on Productivity
jonyablonski
57
3.8k
Practical Orchestrator
shlominoach
180
9.7k
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
11
1.4k
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