Complete Guide Flutter Push Notifications with Firebase Cloud Messaging

preview_player
Показать описание
Complete Guide Firebase Messaging and Local Notification for Flutter. We covered the below topics, firebase messaging setup, send notification from firebase console and send from the device as well.
1. Init firebase
2. Send message from console
3. Receive message
4. Show notification
5. Send notification to specific user
6. Open notification
7. Foreground notification
8. Background notification
9. Redirect user to a new route
10. Get device token
11. Save device token.

1:06 Packages
3:25 Initialize
4:58 Test
5:45 Get device token
9:55 Save token for corresponding user
14:00 Dealing with icon
15:30 Handle remote message
18:56 Cloud messaging
19:34 Test message

📕📕📕📕📕📕📕📕Take my Udemy course on Real Time Chat App
📕📕📕📕📕📕📕 Complete E-commerce app

Get firebase FCM and Local Notification APK here

Buy me a coffee
Learn software programming with us step by step. Make money from home by learning programming

Complete e-commerce app

Complete app for beginners

Firebase complete study app

Complete Gym App

Traveling App

Learn to build an android and iOS app

Learn to build a video player app

Learn to build a website step by step

Learn to build an ebook app

Build an audio app step by step

Twitter @dbestech
Instagram @dbestech
What's app @dbestech
LinkedIn @dbestech

Buy a Macbook like me as I am using

Twitter @dbestech
Instagram @dbestech
What's app @dbestech

Timeline
0:25 Send messages to specific user
1:08 Install dependencies
1:30 Created MyApp
1:57 Created MainScreen
2:35 Run the app
3:08 Initialize firebase
3:47 InitState
4:12 Request permission from device
5:40 Get Device Token from Firebase for iOS and Android
7:24 Save Device Token
8:25 Print device token
11:55 Flutter Local Notification Plugins Initialize
13:15 Flutter Local Notification Payload
13:48 About Notification Icon with Custom Icon
Рекомендации по теме
Комментарии
Автор

2 Months ago i couldnt quite get what you were doing in some parts. 2 months after that, i come again. this time everything works flawlessly. I can see my progress
thanks to people like you

codewithsebastian
Автор

Man I really love and appreciate what you are doing here, big support ❤

ebraheemlabib
Автор

This video was very useful, just what i need. Thank you so much, man.

jhonatanamortegui
Автор

بارك الله فيك اخي العزيز BAREK ELLAH FIK MY BRO

zizou
Автор

Man how u know what i need. I was just searching out firebase messaging tutorial since the past few days. And yeah here i got the best one.

naveedkaimkhami
Автор

Hello sir! Thank you for this tutorial I have used it. I just want to ask also, can I use this in web build?

edwardphilipguarin
Автор

1:06 Packages
3:25 Initialize
4:58 Test
5:45 Get device token
9:55 Save token for corresponding user
14:00 Dealing with icon
15:30 Handle remote message
18:56 Cloud messaging
19:34 Test message
31:10 Send message from device
32:00 Manifest file

easy_english_
Автор

Hey, I'm sending notifications to users using topics from Cloud Messaging. I want to build an in-app notifications screen, so am I going to have to store that notification data in my database to be able to show them?

sykoz
Автор

Thank You! It really helps me a lot. JzakAllah

flutter_crafter
Автор

thx sir for the tuto, i have question!
i have e-commerce app and i want users to get notification when there is new product is added, and also when they click on notification they went to the page and display the product info !
how can i do it !
and 3rd question, in the port methode, if i remove the "to" key will the notification be sent to all devices?

ninehichem
Автор

Thanks a lot man. (Subscribed just now)

si_ibrahim
Автор

Hey bro, for sending push notification from the app the legacy version used server-key but now it uses Oauth2 token how can I get that any idea?

codein
Автор

Hi, how are you ? I wanted to ask you something. I made the video and when I installed the app on two phones, the admin sends a notification to the client app using the sending mode "to": "/topics/myTopic1". The admin sends the notification but the client app does not receive the notification unless the client app also sends a notification. apart from if you receive the notifications that the admin app sends you... what could be the problem?

dirojasvera
Автор

nice video sir thank you so much 🙏🏼🙏🏼🙏🏼, but how to send msg to multiple user please reply...

someshsahu
Автор

This video is perfecto! Thanks for everything dude

PiPe
Автор

Waalaikumsalam warahmatullahi wabarakatuh, nice to see your tutorial again my bro, this is what I'm in right now

brcglog
Автор

Thank you so much .
Love from Nepal ❤❤❤

codewithnishant
Автор

Hey there. My IOS app is closing when gets a notification. Any idea why?

BTW, i only uploaded APNs authentication key to Firebase

flutter_local_notifications 12.0.4
firebase_messaging 14.1.4

matheusfigueredo
Автор

Do you have any tutorial regarding FCM using Cloud Functions and HTTP V1 protocol?

bonnyahmad
Автор

Very great content, thank you. I have a question :- How can we customize the push notification sound and how to make the notification appear like a snackbar on top when the app is on background or terminated.

motivaet