No video

Trigger FCM using Node JS Server | How to send push notifications using Node JS and Firebase?

  Рет қаралды 43,878

Aditya Thakur

Aditya Thakur

Жыл бұрын

In this video, we see how you can create a Node JS Server using Firebase Admin SDK to send out push notifications.
When you hit a post endpoint on the Node JS server, it delivers a notification to a Flutter app using Firebase Messaging.
We also deploy the Node JS Server to a free hosting (render.com).
Documentation Links -
Setup Firebase admin SDK in Node: firebase.google.com/docs/admi...
Add a Service account to authorise send: firebase.google.com/docs/clou...
Send message using Node: firebase.google.com/docs/clou...
GitHub Gist (with Node Server code)
gist.github.com/adityathakurx...
----------------------------------------------------------------------------
Hey!
I am Aditya Thakur, a Developer and Designer. I make videos on Flutter, Python, and other technologies. I also sometimes take up Profile Building and entrepreneurship!
💙 Learn how to use Flutter with Firebase: • FlutterFire - Free Fir...
🎬 Python Debugged Playlist: • Python Debugged
📚 PROMOS
Get an exclusive 10% discount on every GeeksforGeeks course!!
Use code: ADITYAT
Check out courses here: practice.geeksforgeeks.org/co...
💰 INVESTMENT APPS
Invest in stocks using Paytm Money: paytmmoney.onelink.me/9L59/85...
Create a free account | Binance: accounts.binance.cc/en/regist...
Trade at India’s largest exchange | WazirX: wazirx.com/invite/xen3p4h3
⚙️ My Gear
📸 Camera: amzn.to/3Ha7xrm
🎙️ Mic (Maono AU): amzn.to/3N9BBHm
🖥️ Mechanical Keyboard: amzn.to/40C8PCz
I post stories about my life and business on my Instagram - / adityathakurxd
Want to talk business? Or ask a question?
Reach out to me on LinkedIn: / adityathakurxd
----------------------------------------------------------------------------
Become a part of my community! (100+ Developers already 🥰)
Link to Discord/Telegram: linktr.ee/flutterdev

Пікірлер: 32
@davidakinde7427
@davidakinde7427 6 ай бұрын
You saved me bro. Been checking pointless articles but none gave the right instructions
@ThomasAlbuquerque
@ThomasAlbuquerque 2 ай бұрын
Very good video, it was exactly what I was looking for, thank you very much
@LarsJeppesen-bk4dw
@LarsJeppesen-bk4dw 10 ай бұрын
Thank you, great video
@heinhtetaung6566
@heinhtetaung6566 9 ай бұрын
Thank you for such an amazing tutorial. 100% working fine according to instruction. You save my day.
@oldlazylobster
@oldlazylobster 8 ай бұрын
did you setup nodejs server or just implemetned flutter part
@pradeepa6023
@pradeepa6023 8 ай бұрын
is it mandatory to set the environment variables each time
@Moni_Thakur
@Moni_Thakur Ай бұрын
Thankyou so much yr ❤
@mishenthakshana3407
@mishenthakshana3407 11 ай бұрын
Thankyou
@danieldeltoro6849
@danieldeltoro6849 Жыл бұрын
Thanks for the video. Can you put an image in notifications?
@DanielTilahun-pv9gv
@DanielTilahun-pv9gv Жыл бұрын
Please help me foreground notification is not working for me can you provide me the front end code?
@user-sn8lf3ss7k
@user-sn8lf3ss7k 5 ай бұрын
Can you please help me with something similar, actually i want to send notification to web,app,ios through single api in nodejs , like when i hit the api then the notification should be send to web,app and ios platforms, together .How can i do this , I preferred the docs of firebase for this and i implemented subscribe to topic functionality but its not working and group devices functionality but i am getting error in that also , can you just tell me the right way to do this and please reply me soon if possible ,its urgent for me..your help is appreciated
@mystikyogi
@mystikyogi 9 ай бұрын
Looks good. I am wondering if notification will be delayed when deployed in production due to high load and concurrent requests. If i want reduce the overall latency for example in app like Facebook if someone liked my post i should get instant notification. How can we achieve this?
@YaqubTawabOlamilekan
@YaqubTawabOlamilekan Ай бұрын
This is where queues comes into play . You can read up on Messaging queues, creating background jobs and sending messages using queues.
@kathir1188
@kathir1188 3 ай бұрын
I have one doubt, how to send a push notification to the partiular device?
@the_sharma_amit
@the_sharma_amit 5 ай бұрын
can i deploy node js server to firebase free hosting??
@thediverseengineer
@thediverseengineer 5 ай бұрын
It is neccesary to deploy app somewhere only to get notificatin on your mobile
@SunnySingh-m4l
@SunnySingh-m4l Ай бұрын
Is this code will work both Android and Ios for push notifications?
@saurabhpankaj3263
@saurabhpankaj3263 5 ай бұрын
Hello aditya i need to your help🙏🙏🙏🙏🙏 for implement code
@Seraf_
@Seraf_ Ай бұрын
Error senerId missmatch. I don know how fix it error
@maurosergiorodriguesdasilv2732
@maurosergiorodriguesdasilv2732 8 ай бұрын
how did u hosting the file json push_notification_key.json on render to work?
@AbhinayKumarMerugu
@AbhinayKumarMerugu 6 ай бұрын
I think he forgot to show how to set environment variables in the render server settings. You need to give the same key-values from your .env file. Even you can give a try to put the JSON content in the env value.
@ershathm6970
@ershathm6970 9 ай бұрын
this is a good video
@ershathm6970
@ershathm6970 9 ай бұрын
good
@ershathm6970
@ershathm6970 9 ай бұрын
good
@ershathm6970
@ershathm6970 9 ай бұрын
good video
@user-uh5yn5qo1b
@user-uh5yn5qo1b 5 ай бұрын
const receivedToken = req.body.fcmToken how can we get fcmToken in req.body it is not giving you error like fcmToken is undefined
@countmein5164
@countmein5164 5 ай бұрын
Your .env format was wrong
@donnyskinner3423
@donnyskinner3423 Жыл бұрын
🤭 "Promo SM"
How to Implement Firebase Push Notifications on Android (FCM + Backend)
1:06:31
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 23 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 10 МЛН
How To Send Flutter Push Notifications using NodeJS
31:41
Snippet Coder
Рет қаралды 18 М.
Firebase Cloud Messaging API (V1) Flutter - Laravel
4:53
Abdallah Yassein
Рет қаралды 2,3 М.
Push Notifications Using Node.js & Service Worker
29:52
Traversy Media
Рет қаралды 281 М.
How To Send Push Notifications With JavaScript?
18:51
Piyush Garg
Рет қаралды 37 М.
📱Android Push Notifications • Flutter x Firebase Tutorial
12:39