Тёмный

Flutter Push Notifications using Firebase 

HeyFlutter․com
Подписаться 200 тыс.
Просмотров 208 тыс.
50% 1

Let's use Firebase Push Notifications in our Flutter app to send push notifications to different users through the Firebase console!
👉 12 Week Flutter Training | heyflutter.com
👉 Flutter Masterclass Courses | heyflutter.com/masterclass
Source Code: github.com/JohannesMilke/push...
Twitter: / heyflutter_
Facebook: / heyflutter
Instagram: / heyflutter_
LinkedIn: / heyflutter
Website: heyflutter.com
#Flutter #Tutorial #HeyFlutter
Thanks For Watching :-)

Наука

Опубликовано:

 

4 июн 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 343   
@HeyFlutter
@HeyFlutter Год назад
👉Join 12 Week Flutter Training: heyflutter.com 👉Join the WhatsApp Channel to get the latest news about Flutter & HeyFlutter: whatsapp.com/channel/0029VaDNCZtC1Fu8nL2vmw3f Source Code: github.com/JohannesMilke/push_notification
@santhoshl3414
@santhoshl3414 Год назад
The video is good but stop sharing source code link when it really doesn't contain source code.
@mgthree178
@mgthree178 11 месяцев назад
Indeed the video is good...but if using funnel strategy to get paid before releasing code, at least be transparent on it
@jobianstechie
@jobianstechie 7 месяцев назад
​@@santhoshl3414she just wasting people time in name of getting source code
@user-pi1wr6ik2b
@user-pi1wr6ik2b 6 месяцев назад
please dont waste time if you dont have to share the actual source code
@samsonloyshock3465
@samsonloyshock3465 17 дней назад
video is amazing but why wasting our time saying that you provide source code but it is a lie 😪😪
@richardgusmao1892
@richardgusmao1892 11 месяцев назад
Thank you so much. I am a completely beginner at flutter and I was struggling to make this thing works. I tried a lot of things and tutorials but nothing happens , I was getting a lot of errors and I did not how to solve it, and then I found your video. It was awesome, thank you so much and keep the good work
@HeyFlutter
@HeyFlutter 11 месяцев назад
Glad to hear that, You are most welcome @richardgusmao1892! 😊
@winstonalf
@winstonalf 9 месяцев назад
This is one of the best push notifications tutorial I have ever seen.. No nonsense. On to the point.
@HeyFlutter
@HeyFlutter 9 месяцев назад
Glad to hear that, Thank you @winstonalf! 😊
@brooklynStevee
@brooklynStevee Год назад
Absolutely the best video on flutter firebase cloud messaging
@HeyFlutter
@HeyFlutter Год назад
Glad it was helpful, @brooklynStevee 😀
@river6634
@river6634 5 месяцев назад
God damn. Thank you so much for your thoroughness with these videos. Every single time, without fail, I need to add something new, you have done an excellent, concise and thorough video on it.
@HeyFlutter
@HeyFlutter 5 месяцев назад
Glad you liked it, @river6634 😀
@Becoder15604
@Becoder15604 10 месяцев назад
Sir, I am Muhammad Ismail from Pakistan I always learn from your channel, and your video is incredible I have applied for the training, I am going to share the link to the training in multiple WhatsApp groups so that we can start our training as soon as possible. Sir, I just shared the training link with more than 2500 students
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thanks, for your support, @Becoder15604! 🙂
@Becoder15604
@Becoder15604 9 месяцев назад
@@HeyFlutter sir all the students are asking for the price and time when we will start
@DEVMIND-bq1eu
@DEVMIND-bq1eu 9 месяцев назад
Thank you so much for this, it was super helpful! Subbed and liked!
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thanks, @DEVMIND-bq1eu! 🙂
@phoenix155
@phoenix155 4 месяца назад
Thanks for the tutorial❤❤❤
@HeyFlutter
@HeyFlutter 4 месяца назад
You are welcome, @Phoenix155 😊
@AnthonyDev
@AnthonyDev 10 месяцев назад
Great updated explanation, thanks.
@HeyFlutter
@HeyFlutter 10 месяцев назад
You’re most welcome, @AnthonyDev! 🙂
@cehpurushothaman6165
@cehpurushothaman6165 4 месяца назад
Very clear notification tutorial thank you so much mam.
@HeyFlutter
@HeyFlutter 4 месяца назад
You’re most welcome, @cehpurushothaman6165! 🙂
@changethementality
@changethementality 6 месяцев назад
This is amazing! Thank you!
@HeyFlutter
@HeyFlutter 6 месяцев назад
You’re most welcome, @changethementality! 🙂
@aweimngok
@aweimngok 2 месяца назад
Just found this video, thank you so much, very helpfull for me
@HeyFlutter
@HeyFlutter 2 месяца назад
Glad to hear that, You are most welcome @aweimngok
@karandeepsingh1898
@karandeepsingh1898 Год назад
AWESOME EXPERIENCE💛
@HeyFlutter
@HeyFlutter Год назад
Great, thank you, @karandeepsingh1898! 🙂👍
@hissy_dev
@hissy_dev 27 дней назад
Look like Google analytics is required, btw you voice os very relaxing😇
@javhaasuhochir8126
@javhaasuhochir8126 11 дней назад
your voice is so soothing. you should do talking asmr.
@rodrodrigues1729
@rodrodrigues1729 9 месяцев назад
Hey there, firebase_core current version is greater than 2. The version on the video seems quite old. Same goes for the firebase_messaging version. There are known issues in regards to which versions of both should be used to make it work. The versions exhibited in the video are a requirement to make it work? Thanks.
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thank you, @rodrodrigues1729! 🙂. Kindly use the latest version.
@ftrrhmn09
@ftrrhmn09 9 месяцев назад
I love this one!!!!!
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thank you, @ftrrhmn09! 🙂
@squidproxy136
@squidproxy136 10 месяцев назад
great tutorial thanks
@HeyFlutter
@HeyFlutter 10 месяцев назад
You are welcome, @squidproxy136 😊
@AjitSingh-rg3zu
@AjitSingh-rg3zu Месяц назад
Thanks for this super useful video
@HeyFlutter
@HeyFlutter Месяц назад
You’re most welcome, @AjitSingh-rg3zu! 🙂
@kiranjadhav4793
@kiranjadhav4793 10 месяцев назад
Thank you for the video..!
@HeyFlutter
@HeyFlutter 10 месяцев назад
You’re most welcome, @kiranjadhav4793! 🙂
@augstudio1138
@augstudio1138 8 дней назад
This is awesome I love it
@HeyFlutter
@HeyFlutter 7 дней назад
Thank you, @augstudio1138! 🙂
@narusempai8678
@narusempai8678 Месяц назад
Thank you so much. It works
@HeyFlutter
@HeyFlutter Месяц назад
Glad to hear that, You are most welcome @narusempai8678
@thoriqikbar6894
@thoriqikbar6894 11 месяцев назад
good tutorial broooooo , thankss
@HeyFlutter
@HeyFlutter 11 месяцев назад
You are welcome, @thoriqikbar6894!
@prabufzs6301
@prabufzs6301 2 месяца назад
Nice explanation ❤
@HeyFlutter
@HeyFlutter 2 месяца назад
Thank you, @prabufzs6301! 🙂
@mr.knight8967
@mr.knight8967 Год назад
Very very effective, Sir i really helpful your quality videos. Sir in your 12week course, will you teach face to face or provide video content and when need you will help us. Please i need complete information about that. Thank you sir
@HeyFlutter
@HeyFlutter Год назад
Thank You mr. knight. Visit this website: heyflutter.com
@muhammadamineeuldji3036
@muhammadamineeuldji3036 11 месяцев назад
Thanks for the video , amazing content as alwasy , I have a question , basically I have my own backend (API) ,and i am trying to find the best way to implement push notifications (FLutter app ) if the database is updated , is it possible to use firebase as an intermediar , or do you guys know s a better solution ?
@HeyFlutter
@HeyFlutter 11 месяцев назад
Hey, @muhammadamineeuldji3036 🙂 You'll have to write logic on your api side
@Hanimiii97
@Hanimiii97 11 месяцев назад
Hey have you found a way to do it? I also have my own API and thinking how to do it.
@ka61er
@ka61er 10 месяцев назад
@@Hanimiii97 read google document, this is easy because i tested
@jdphotograph
@jdphotograph 11 месяцев назад
This is great thanks. Now I need to understand how can you send a message to a group of phones from a server backend? Can a flutter app subscribe to a topic and when you send a message to the topic all the phones subscribed gets the message. Or how does this work. Do you have to send a message to each token ?
@HeyFlutter
@HeyFlutter 11 месяцев назад
Hey, @jdphotograph 🙂 In case user is subscribed to topic notification will be auto sent to all the users, while token is preferred while sending notification to individual device
@bbammjin
@bbammjin Год назад
09:23 I'm stuck here. I can't write "message.notification?.title". Is it correct to write "final message = ModalRoute.of(context)!.settings.arguments;"? The text is cut off in the video, so I can't check it.
@bbammjin
@bbammjin Год назад
Never mind, I change my code to "final message = ModalRoute.of(context)!.settings.arguments as RemoteMessage;" and it works!😂
@HeyFlutter
@HeyFlutter Год назад
Great, Thank you BBAMMJIN!
@BOSSandCHOCO
@BOSSandCHOCO 10 месяцев назад
Thank you so much!
@HoaPham-kb5xv
@HoaPham-kb5xv 7 месяцев назад
@@bbammjin i change to this and when i run app i got this error: Exception has occurred. _TypeError (type 'Null' is not a subtype of type 'RemoteMessage' in type cast) can you help?
@bbammjin
@bbammjin 7 месяцев назад
@@HoaPham-kb5xv I'm not an expert either, so it's hard to determine what the problem is just by looking at your errors. I'm sorry I couldn't help you.
@mennamohamd7405
@mennamohamd7405 11 месяцев назад
thanks very much
@HeyFlutter
@HeyFlutter 11 месяцев назад
You are welcome, @mennamohamd7405 😊
@marana.th4
@marana.th4 Год назад
quality quality content
@HeyFlutter
@HeyFlutter Год назад
Thank you, Cpt. Spiky Sire! 🙂
@1ManStartup
@1ManStartup Год назад
in handleMessage is it possible to use go_router for the redirect? Maybe not, but how would this work without using `navigatorKey`?
@HeyFlutter
@HeyFlutter Год назад
Thank You @1ManStartup! Follow this link: stackoverflow.com/questions/72745661/flutter-gorouter-and-receiving-firebase-push-notification I hope you will get your answer 🙂
@1ManStartup
@1ManStartup Год назад
@@HeyFlutter Thanks I'll take a look, great video!
@Masterslandnn
@Masterslandnn 10 месяцев назад
@@HeyFlutter this information is deprecated. How to use go_router in your case? it's doesn't works without context, but in your class we have no context
@ganesh-br1iy
@ganesh-br1iy Год назад
Hyy I love your videos 🇮🇳🇮🇳
@HeyFlutter
@HeyFlutter Год назад
Thank you, ganesh! 🙂
@AminaKarchoud
@AminaKarchoud Месяц назад
great tuto and in point, but i can't stop ignoring your tunisian accent, it's like hearing my self talkin, keep going my tunisian girl
@HeyFlutter
@HeyFlutter Месяц назад
Thank you, @AminaKarchoud! 🙂
@chooyinkeat2063
@chooyinkeat2063 10 месяцев назад
Just curious, does that mean the code you provide can be consider as push and local notification?
@brayantiwa
@brayantiwa 7 месяцев назад
It's only push notification, even if it needs the local notifcation package at a moment. Notifications are only triggered when the server send data.
@crazy-man
@crazy-man 9 месяцев назад
cool really helpful
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thank you, @crazy-man! 🙂
@gigamgamboa828
@gigamgamboa828 Месяц назад
you gained a subscriber. been troubleshooting this for days now. im just wondering how to do it if i have hundreds of devices already. i can do the saving of token to the database. then what to do? do you have tutorials?
@HeyFlutter
@HeyFlutter Месяц назад
Thank You @gigamgamboa828! Follow this link: www.reddit.com/r/Firebase/comments/1b087au/best_way_to_save_fcm_tokens/ I hope you will get your answer 🙂
@vatandas9412
@vatandas9412 11 месяцев назад
thank you
@HeyFlutter
@HeyFlutter 11 месяцев назад
You are welcome, @vatandas9412!
@hammadalive
@hammadalive 10 месяцев назад
Great explanation, thanks.
@HeyFlutter
@HeyFlutter 10 месяцев назад
You are welcome, @hammadalive!
@_ritesh305
@_ritesh305 11 месяцев назад
would changing to minSdkVersion 21 make any difference? if yes what issues can i face?
@HeyFlutter
@HeyFlutter 11 месяцев назад
Thank you, @_ritesh305! 🙂. I don't think so it will make any difference.
@mosco225
@mosco225 Год назад
Hey !!! Thank you for this tutorial. In my case i want to use push notification without firebase. For exemple laravel on background
@HeyFlutter
@HeyFlutter Год назад
Thank you, Anzoumana Cissé! 🙂
@DraskoSaric
@DraskoSaric 10 месяцев назад
You will have to use other plugins, for example: awesome_notifications
@talhaahmed-nb7tk
@talhaahmed-nb7tk 9 месяцев назад
Thank you for the great stuff. I have followed through it but I am still not getting the foreground notifications what might be the issue? as I have followed all the steps. firebase_messaging: ^14.6.8 flutter_local_notifications: ^8.2.0 these are the version of the packages I have used. as I am adding a feature to my previous project so these versions fit with it.
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thank You @talhaahmed-nb7tk! Follow this link: stackoverflow.com/questions/70106773/flutter-firebase-foreground-push-notification-not-showing-but-background-is-work I hope you will get your answer 🙂
@EasierGames
@EasierGames Год назад
Some configurations are changed in the latest flutter_local_notifications package version
@HeyFlutter
@HeyFlutter Год назад
Hey, @EasierGames 🙂 thanks for updating. We'll try to bring updated tutorial on channel
@coal_91
@coal_91 Год назад
what exactly did change?
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr 11 месяцев назад
@@coal_91 1. IOSInitializationSettings => I dont know what the changes. 2. await _localNotifications.initialize(onSelectNotification) => await _localNotifications.initialize(onDidReceiveNotificationResponse)
@liveghost8147
@liveghost8147 11 месяцев назад
@@MuhammadFaisal-ey5fr IOSInitializationSettings => DarwinInitializationSettings()
@QihFaqih1
@QihFaqih1 10 месяцев назад
@@MuhammadFaisal-ey5fr IOSInitializationSettings => DarwinInitializationSettings
@ngjohn5224
@ngjohn5224 2 месяца назад
u save my life
@HeyFlutter
@HeyFlutter 2 месяца назад
Glad to hear that, Thank you @ngjohn5224! 😊
@vincegelobuala4148
@vincegelobuala4148 8 месяцев назад
Do you have an idea to for it to show a notification pop up? At 6:36, the notification icon shows in the notification bar, but there was no notification pop up that appears--initially showing the notification title and content.
@HeyFlutter
@HeyFlutter 8 месяцев назад
Hey 😊, @vincegelobuala4148! Check out this solution: stackoverflow.com/a/74321941 I hope this may help you.
@chooyinkeat2063
@chooyinkeat2063 9 месяцев назад
Then regarding the navigation, if i refer to your method. Can i make it dynamic ?
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thank You @chooyinkeat2063! Follow this link: selvaganesh93.medium.com/firebase-cloud-messaging-important-rest-apis-be79260022b5 I hope you will get your answer 🙂
@ZaferAst
@ZaferAst 10 месяцев назад
Thank you very much for the tutorial, I have a question Text('${message.notification?.title}'), Text('${message.notification?.body}'), Text('${message. Data}'), in the lines I am getting these errors, what could be the reason? The property 'notification' can't be unconditionally accessed because the receiver can be 'null'. :29 The property 'notification' can't be unconditionally accessed because the receiver can be 'null'. :30 The property 'data' can't be unconditionally accessed because the receiver can be 'null'. :31
@anozGosai
@anozGosai 10 месяцев назад
add ? infront of the the message, it will solve the issue but i am getting another error in the same place which says :The getter 'notification' isn't defined for the type 'Object'. maybe the problem is with my message argument. could you please show me your message argument. This is my message argument: final message = ModalRoute.of(context)!.settings.arguments; Correct me if it's different than yours.
@HeyFlutter
@HeyFlutter 10 месяцев назад
Thank You @zaferaslantas2930! Follow this link: stackoverflow.com/questions/67659678/flutter-the-property-settings-cant-be-unconditionally-accessed-because-the I hope you will get your answer 🙂
@ZaferAst
@ZaferAst 10 месяцев назад
Thanks 🙂 @@HeyFlutter
@ZaferAst
@ZaferAst 10 месяцев назад
Thank you for the answer @anozGosai Our message argument is the same. final message = ModalRoute.of(context)!.settings. Arguments;
@shalinijain6210
@shalinijain6210 6 месяцев назад
@@anozGosai I m getting the same issue , did you find any solution for the same?
@souheil9227
@souheil9227 10 месяцев назад
You are definitely Tunisian!
@moubiswasEdits
@moubiswasEdits Год назад
The quality is as always awesome!!! But have a bit difficulties to understand the accent of English as a non-native English speaker.
@moubiswasEdits
@moubiswasEdits Год назад
btw thanks for the English Subtitles though, it was helpful to understand
@HeyFlutter
@HeyFlutter Год назад
You are welcome, @moubiswasEdits!
@mwgmlg5600
@mwgmlg5600 7 месяцев назад
heya I have a question using this package, can we send the notification without going to firebase first and send it automatically using code ? Thanks, I appreciate the video
@HeyFlutter
@HeyFlutter 7 месяцев назад
Thank you, @mwgmlg5600! 🙂. Yes you can.
@mwgmlg5600
@mwgmlg5600 7 месяцев назад
can you show us how? I read from other source that it needs some kind of server, thanks@@HeyFlutter
@alaalahlouh
@alaalahlouh Год назад
Can you make a video about how to make the bottom navigation bar show up permanently
@HeyFlutter
@HeyFlutter Год назад
Thank You Ala'a Lahlouh! Follow this link: pub.dev/packages/persistent_bottom_nav_bar I hope you will get your answer 🙂
@LoZioHomer
@LoZioHomer 5 месяцев назад
Hi, great video, thank you! BTW, I can't receive push notifications while the app is terminated. What can be the issue in you opinion?
@HeyFlutter
@HeyFlutter 5 месяцев назад
Hey @LoZioHomer 😀 you can try some of these things: 1. Make sure you are receiving notifications when app is in background. 2. Make sure native side is configured properly and you have an added a background handler. 3. Try by installing app using "flutter run --release"
@LoZioHomer
@LoZioHomer 5 месяцев назад
Thank you :D @@HeyFlutter
@zenitsux17
@zenitsux17 2 месяца назад
hello this is a great tutorial but may i ask about the permissions because it is like a headache for me .. in android 13+ we must ask for notification permission .. so this code will work fine or we should modifiy it ? and is it necessary to add all this work inside the main function ?
@HeyFlutter
@HeyFlutter 2 месяца назад
Hey @zenitsux17 you can use this code as it as it has already handled request case at 4:18
@ShubhamSingh-rl4zu
@ShubhamSingh-rl4zu 10 месяцев назад
Thanku
@HeyFlutter
@HeyFlutter 10 месяцев назад
You are welcome, @ShubhamSingh-rl4zu!
@templetonmeshack2816
@templetonmeshack2816 5 месяцев назад
Hey, So I have been using flutter push notification on click with rest API's..Recently they asked everyone to migrate to Firebase cloud messaging v1. according to the google documentationa few changes have been made but I stuggle to know how to get the access token required on Authorization. may you please assist if you can.
@HeyFlutter
@HeyFlutter 5 месяцев назад
Thank You @templetonmeshack2816! Follow this link: stackoverflow.com/questions/76743829/how-to-migrate-from-legacy-fcm-apis-to-http-v1-for-flutter I hope you will get your answer 🙂
@amjadvk7437
@amjadvk7437 3 месяца назад
Can you please explain why u used the flutter local notations even when i can do all of them with fcm.
@HeyFlutter
@HeyFlutter 3 месяца назад
Hey @amjadvk7437 😀 flutter local notifications is used to display heads up notification when app is opened.
@abcreations9957
@abcreations9957 10 месяцев назад
Hi i have implemented firebase push notification with custom sound it will work fine when app is in foreground but in background notification comes but custom sound is not playing even implemented background handler will you plz help me
@HeyFlutter
@HeyFlutter 10 месяцев назад
Hey 😊, @abcreations9957! Check out this solution: stackoverflow.com/a/62042816
@rihabjenzeri2981
@rihabjenzeri2981 2 месяца назад
انت تونسة ، متأكدة أن أنت تونسية ، رغم أن تحكي بالإنجليزية ، بنت بلادي الغاليا ، ربي إوفقك
@HeyFlutter
@HeyFlutter 2 месяца назад
Thank you, @rihabjenzeri2981! 🙂
@alhaidarai
@alhaidarai Месяц назад
thank you very much, but how can i make it send notification based on data coming from api like if new data arrived it sends a notification
@HeyFlutter
@HeyFlutter 28 дней назад
Thank You @alhaidarai! Follow this link: medium.com/@jesuseguncaleb/integrating-push-notification-in-your-flutter-app-using-firebase-cloud-messaging-rest-api-6aaac0c06577 I hope you will get your answer 🙂
@homeofgame2984
@homeofgame2984 3 месяца назад
the code you put in flutter local notfication where did you get from the channel id and other ??
@HeyFlutter
@HeyFlutter 3 месяца назад
Thank You @homeofgame2984!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr 11 месяцев назад
IOSInitializationSettings() isnt defined. Is it because of differences of the library version? Can you tell us what the changes are?
@HeyFlutter
@HeyFlutter 11 месяцев назад
Thank you, @MuhammadFaisal-ey5fr! 🙂. Kindly read the official docs.
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr 11 месяцев назад
@@HeyFlutter Okay, thanks for the kind reply! Hey one more thing, do you have tutorial for iOS push notification too??
@juancueva4815
@juancueva4815 10 месяцев назад
@@MuhammadFaisal-ey5fr use "DarwinInitializationSettings" instead
@junovicz
@junovicz 9 месяцев назад
hi there, in my case notifications sent through cloud messaging notifications on the firebase console work only on the debug terminal, I receive the notification but on my android emulator I don't get notifications.
@junovicz
@junovicz 9 месяцев назад
addendum: notifications really work, what I was missing was notification permissions for the app, is there a simple way to check when initializing the app for requesting notification permissions? I'm testing on android.
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thank You @junovicz! Follow this link: stackoverflow.com/questions/73798602/ask-notifications-permission-in-flutter I hope you will get your answer 🙂
@Nicosfrs
@Nicosfrs 11 месяцев назад
Good tutorial, the issue I am having is I get the notifications from testing, but if I create a campaign, I will never get the notification.
@HeyFlutter
@HeyFlutter 11 месяцев назад
Thank you @Nicosfrs, make sure to follow the tutorial step by step 🙂
@JSquiff
@JSquiff 10 месяцев назад
@@HeyFlutter I think something may have changed as this worked for me a few weeks ago, but now it receives the broadcast but doesn't display the information in the handleBackgroundMessage
@classic7033
@classic7033 10 месяцев назад
Yeah, getting the same problem. The device does not display the notification but I know the device is receiving the notification since the debug console printing the notification.
@iremerdogan8140
@iremerdogan8140 Месяц назад
Min. Can't I set the SDK version to 19? Is it right to keep it as it is default?
@HeyFlutter
@HeyFlutter Месяц назад
Thank you, @iremerdogan8140! 🙂. Yes, in some cases you need to change it.
@nicolassangregorio606
@nicolassangregorio606 3 месяца назад
Hi i have a question. How Manage the fcmtoken when you have the app in the market. Because if i understand any new device with the app have a unique fcmtoken? so when someone download the app, i need this fcm to send a message ? Thanks!
@HeyFlutter
@HeyFlutter 3 месяца назад
Thank You @nicolassangregorio606! Follow this link: stackoverflow.com/questions/51519863/updating-fcm-token-on-flutter-app I hope you will get your answer 🙂
@nicolassangregorio606
@nicolassangregorio606 3 месяца назад
@@HeyFlutterthanks !
@farzane_gharib
@farzane_gharib 7 месяцев назад
Hi. Im using firebase messaging in my flutter app. Why do I get this error: "Error: AbortError: Failed to execute 'subscribe' on 'PushManager': Subscription failed - no active Service Worker " when I run my Flutter app for the first time on Chrome browser, but if I restart the app or refresh the browser page, the error disappears? and how should i solve that?
@HeyFlutter
@HeyFlutter 7 месяцев назад
Thank You @user-rc5ly1lz1f! Follow this link: github.com/firebase/firebase-js-sdk/issues/5797 I hope you will get your answer 🙂
@farzane_gharib
@farzane_gharib 7 месяцев назад
Thank you for your response. I have raised my issue here. I hope a solution will be found.@@HeyFlutter
@raulbenelli5454
@raulbenelli5454 3 месяца назад
Hello from the future, nice video, but now the structure of gradle files is different, any suggestion? thanks
@HeyFlutter
@HeyFlutter 3 месяца назад
Thank you, @raulbenelli5454! 🙂. Please try to provide enough details with your question.
@raulbenelli5454
@raulbenelli5454 3 месяца назад
@@HeyFlutterThanks, but I was decided to try with firebase CLI and it work. thanks
@MohanRaj-nt7ru
@MohanRaj-nt7ru Год назад
I did all things as you did. Not receiving Notification when app is killed. Need help here
@HeyFlutter
@HeyFlutter Год назад
Thank you, @MohanRaj-nt7ru! 🙂. Try to provide enough details with your question whenever you face any issue.
@learnwithme20
@learnwithme20 9 месяцев назад
if i made it then all the devices if i make it in a state will get the notification?
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thank you, @learnwithme20! 🙂. Try to provide enough details with your question.
@user-qn4us9ex5h
@user-qn4us9ex5h 11 месяцев назад
hellow,Thak for this video,can you make video about dynamic links connect with firebase ,if you make i really thank you
@HeyFlutter
@HeyFlutter 11 месяцев назад
Thanks for the idea, @user-qn4us9ex5h! 🙂 I have added it to my list of ideas for future videos!
@emirhan2070
@emirhan2070 Месяц назад
But can I do when the message come (app is terminated) it will go directly to the specified screen without I clicking the notificaion?
@HeyFlutter
@HeyFlutter Месяц назад
Hey @emirhan2070 😀 this behavior is not allowed by respective platforms
@shuaibalghazali3405
@shuaibalghazali3405 2 месяца назад
Okay so the app can receive notifications, how do i determine the message that's going to be the notification from the other app
@HeyFlutter
@HeyFlutter 2 месяца назад
Thank You @shuaibalghazali3405! Follow this link: stackoverflow.com/questions/70339106/how-to-detect-incoming-message-in-flutter I hope you will get your answer 🙂
@maazking9087
@maazking9087 10 месяцев назад
upon testing, I am only getting a print on the console "broadcast received for message", I am not getting any notifications popped up
@HeyFlutter
@HeyFlutter 10 месяцев назад
Thank You @maazking9087! Follow this link: medium.com/@yshean/implementing-push-notifications-in-flutter-apps-aef98451e8f1 I hope you will get your answer 🙂
@corepuncher
@corepuncher 3 месяца назад
I was able to receive test message when running app in debug mode and minimizing, but I am not receiving any notifications with the app closed.
@corepuncher
@corepuncher 3 месяца назад
Well, I woke up the next morning, and the test alerts send now with app in the background. Maybe system needed time to register something.
@flutterdiary
@flutterdiary 11 месяцев назад
Thank you for this great video. For now, I use this method. But my point is legacy API is deprecated soon. I need to shift legacy to HTTP v1. I search a lot, but no related video was found. Can you make a video of it? Show in my Firebase console 😔 "If you are an existing user of the legacy HTTP or XMPP APIs (deprecated on 6/20/2023), you must migrate to the latest Firebase Cloud Messaging API (HTTP v1) by 6/20/2024".
@HeyFlutter
@HeyFlutter 11 месяцев назад
Thanks for the idea, @flutterfix1340! 🙂 I have added it to my list of ideas for future videos!
@ijasinijeremiah5509
@ijasinijeremiah5509 8 месяцев назад
hey@@HeyFlutter do you have a video on this yet?
@nsgroupsoftware3222
@nsgroupsoftware3222 Год назад
hello.perfect video.. but when app terminated i can receive notification and then push the nottification then not opening notificattion_screen.
@ScroatyDontKnow
@ScroatyDontKnow 7 месяцев назад
I have the same issue. Did you manage to get this working?
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr 10 месяцев назад
Hey, how about adding image in the Push Notification itself?
@HeyFlutter
@HeyFlutter 10 месяцев назад
Thank You @MuhammadFaisal-ey5fr! Follow this link: stackoverflow.com/questions/65625197/how-to-show-image-in-firebase-push-notification-in-flutter I hope you will get your answer 🙂
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr 9 месяцев назад
@@HeyFlutter Thanks!
@vibenep
@vibenep 6 месяцев назад
hello i have one issue how can we receive notification title and body when app is is in background and display them in notificationpage without clicking on notification i mean to say i have one notification page which stores all the notification received but i am unable to retrieve title body or payload without clicking can someone help please??
@HeyFlutter
@HeyFlutter 6 месяцев назад
Thank You @vibenep! Follow this link: stackoverflow.com/questions/48403786/how-to-open-particular-screen-on-clicking-on-push-notification-for-flutter I hope you will get your answer 🙂
@benjaminsmith9943
@benjaminsmith9943 4 месяца назад
Everything works until 7:04 - background messages show but where I terminate the app as depicted I stop receiving notifications. Has something changed? Same results at 10:07 Workstation: AndroidStudio on Fedora 39 Linux phone: Moto Razr Plus 2023 Android Version 13.
@HeyFlutter
@HeyFlutter 4 месяца назад
Thank you, @benjaminsmith9943! 🙂. Please try to provide enough details with your question
@benjaminsmith9943
@benjaminsmith9943 4 месяца назад
@@HeyFlutter It's simple: 1) I tap the square button to see the apps. 2) I terminate the notifications test app by swiping it up off the top of the screen. 3) I send a message using the token code that was just working when the app was backgrounded. 4) No notification received. Would it be better to send a response video to show exactly what I'm doing?
@tedlavender494
@tedlavender494 7 месяцев назад
Great video, but looking over the packages imported it seems very dated. After following along, I am still not able to receive push notifications. Has anyone gotten this to work in 2023?
@HeyFlutter
@HeyFlutter 7 месяцев назад
Thank you, @tedlavender494! 🙂. May be there is slight changes. You can see the official docs.
@abhishekbhujel4158
@abhishekbhujel4158 4 месяца назад
Hi Iam not receiving notifications on my phone iam getting this D/FLTFireMsgReceiver( 9096): broadcast received for message 2 W/FirebaseMessaging( 9096): Unable to log event: analytics library is missing
@HeyFlutter
@HeyFlutter 4 месяца назад
Thank You @abhishekbhujel4158! Follow this link: stackoverflow.com/questions/64947747/how-to-run-a-function-when-a-notification-is-received-with-firebase-messaging-8 I hope you will get your answer 🙂
@mahbubpasha6176
@mahbubpasha6176 6 месяцев назад
Hi, routing in specific page while tap on notification isn't working while app is terminated. I've done my code following all the steps that you showed here. Would please tell me reason. I think navogatorkey getting null while app is terminated that's why routing isn't working while app is terminated. BTW, nice tutorial.
@HeyFlutter
@HeyFlutter 6 месяцев назад
Thank You @mahbubpasha6176! Follow this link: stackoverflow.com/questions/76827787/issue-in-navigating-to-desired-screen-on-clicking-a-notification-when-flutter-ap I hope you will get your answer 🙂
@mahbubpasha6176
@mahbubpasha6176 6 месяцев назад
@@HeyFlutter Thank you. I would like to show notification for background and app terminated state using flutter_local_notification also. For that I've added display notification code inside handleMessage FirebaseMessaging.instance.getInitialMessage().then(handleMessage); FirebaseMessaging.onMessageOpenedApp.listen(handleMessage); But found two issues. 1. Action button not showing while app is in background or terminated 2. While I tapped on notification its taking me inside app but then showing notification again. This repeats everytime I tapped on notification. How could I override firebase notification using flutter_local_notification?
@saratm9973
@saratm9973 5 месяцев назад
Exception has occurred. _TypeError (type 'Null' is not a subtype of type 'RemoteMessage' in type cast). Kindly solve this error or is there any link to solve this exception?
@HeyFlutter
@HeyFlutter 5 месяцев назад
Hello, @saratm9973! Follow this link: stackoverflow.com/questions/69631360/type-null-is-not-a-subtype-of-type-listdynamic-in-type-cast I hope it will solve your problem. Thank You 🙂
@anuragkashyap5011
@anuragkashyap5011 Год назад
How to send notification to every user whenever I click on button and not by using test campaign in firebase
@ugochukwuumerie6378
@ugochukwuumerie6378 Год назад
You will need to integrate firebase admin to send messages without firebase console message campaign
@HeyFlutter
@HeyFlutter Год назад
Thank You Anurag Kashyap! Follow this link: medium.com/antigua-mobile/easy-push-notifications-with-flutter-and-firebase-cloud-messaging-d96084f5954f I hope you will get your answer 🙂
@ulemukawelama431
@ulemukawelama431 9 месяцев назад
This great and helpful tutorial, however you should have also shown us how to send a notification to multiple devices at once.
@HeyFlutter
@HeyFlutter 9 месяцев назад
Thanks for the idea, @ulemukawelama431! 🙂 I have added it to my list of ideas for future videos!
@anandhar9329
@anandhar9329 4 месяца назад
How to make the notification popup on the screen like other application. It's only shown in the status bar.
@HeyFlutter
@HeyFlutter 4 месяца назад
Thank you, @anandhar9329! 🙂. Please try to provide enough details with your question
@anandhar9329
@anandhar9329 4 месяца назад
@@HeyFlutter Notification is working properly. Like I am receiving notifications from FCM but it is like silent notification it is arriving in the status bar only it is not popping on the screen (I mean like alert) like in other applications we will receive notification as a popup but it's not coming for me.
@anandhar9329
@anandhar9329 4 месяца назад
Some people said that it is because you have create a high_importance_channel otherwise it will be miscellaneous. So it will not popup on the screen. But I have also created the high_importance_channel but still not getting.
@anozGosai
@anozGosai 10 месяцев назад
I am getting this error. The getter 'notification' isn't defined for the type 'Object'.
@HeyFlutter
@HeyFlutter 10 месяцев назад
Thank You @anozGosai! Follow this link: stackoverflow.com/questions/74442153/the-getter-product-isnt-defined-for-the-type-object-flutter-modalroute-se I hope you will get your answer 🙂
@abhishekbhujel4158
@abhishekbhujel4158 4 месяца назад
Hi can anyone share code of local push notification where the time and date is given by user and it has to be repeated daily
@HeyFlutter
@HeyFlutter 4 месяца назад
Thanks for the idea, @abhishekbhujel4158! 🙂 I have added it to my list of ideas for future videos!
@pankajsir9474
@pankajsir9474 Год назад
Kindly make video on app update version.
@HeyFlutter
@HeyFlutter Год назад
Thanks for the idea, Pankaj Sir! 🙂 I have added it to my list of ideas for future videos!
@pankajsir9474
@pankajsir9474 Год назад
@@HeyFlutter1. user get notifications for app update (for new versions available) 2. Or When user open app show alert forcefully navigate for app update. Both above are important topics for beginners. Try to make it guys. And 3000love you guys ❤❤❤
@eytan2592
@eytan2592 Год назад
how i can send a notification to a specific user ?
@HeyFlutter
@HeyFlutter Год назад
Thank You @eytan2592! Follow this link: stackoverflow.com/questions/71299214/send-notification-to-specific-user-firebase-in-flutter I hope you will get your answer 🙂
@jontysingh4334
@jontysingh4334 6 месяцев назад
How to show badge number on app icon ( badge number working fine for Android but not working in ios) , please make one video on that as soon as possible
@HeyFlutter
@HeyFlutter 6 месяцев назад
Thanks for the idea @jontysingh4334 😀, i have added it in my list of future videos
@sanctum_gaming
@sanctum_gaming Год назад
i get an error iam trying add message output in text widget, but notification? got red line. help me
@HeyFlutter
@HeyFlutter Год назад
Thank you, @sanctum_gaming! 🙂. Try to provide enough details with your question whenever you face any issue.
@thecoolerparthdeshpande
@thecoolerparthdeshpande Год назад
The named parameter 'onSelectNotification' isn't defined. error
@HeyFlutter
@HeyFlutter Год назад
Thank You @thecoolerparthdeshpande! Follow this link: stackoverflow.com/questions/74245031/error-the-named-parameter-onselectnotification-isnt-defined I hope you will get your answer 🙂
@diprajroy8552
@diprajroy8552 Год назад
@@HeyFlutter bro after use onDidReceiveNotificationResponse ,final message = RemoteMessage.fromMap(jsonDecode(payload!)); i get error on (payload!) tell that cant assign as string please solve it bro i stuck here
@BOSSandCHOCO
@BOSSandCHOCO 10 месяцев назад
@@diprajroy8552 were you able to fix this?
@praveenpushkin5604
@praveenpushkin5604 6 месяцев назад
Actually it can be make a simple way, you made it very complecated
@HeyFlutter
@HeyFlutter 6 месяцев назад
Thank you, @praveenpushkin5604! 🙂. We are sorry for that, but we always learn and try to improve ourselves, your kind suggestion will help in that regard. Let us know what should we improve in our videos? Your suggestion will be highly appreciated.
@oussamasbisiane4544
@oussamasbisiane4544 2 месяца назад
but how i can press to send a notification to a topic i really struggle with that press a button in the app to send a notification to a topic all the videos shared are only send notif from the firebase test no one implement the logic to send it from the app
@HeyFlutter
@HeyFlutter 2 месяца назад
Thanks for the idea @oussamasbisiane4544 😀, i have added it in my list of future videos
@oussamasbisiane4544
@oussamasbisiane4544 2 месяца назад
@@HeyFlutter i can provide u the code if u want i solve the problem
@nandaydas8670
@nandaydas8670 Год назад
I'm getting an error: Unable to log event: analytics library is missing
@HeyFlutter
@HeyFlutter Год назад
Thank you @nandaydas8670, make sure to follow the tutorial step by step 🙂
@Murtaza-ik8ub
@Murtaza-ik8ub Год назад
Well that escalated quickly. Too much too fast. For a complex topic like this, the video should have been longer with a clearer explanation of each step.
@HeyFlutter
@HeyFlutter Год назад
Thanks for your feedback, Murtaza! 🙂
@iSWATxJOKERi
@iSWATxJOKERi 11 месяцев назад
No it was perfect
@Shiryd
@Shiryd 8 месяцев назад
honestly this speed works wonders for me! i think it should work for you too unless you're a begginer to flutter and get lost between all the files that she's editing
@naeemazafar688
@naeemazafar688 5 месяцев назад
Consume it in chunks, Don't watch it fully if you get lost in the middle :)
@chipekowasa6571
@chipekowasa6571 8 месяцев назад
👏🏾👏🏾👏🏾
@vishalmethri7073
@vishalmethri7073 8 месяцев назад
I am unable to redirect when I click on the notification received when the app is in the terminated state. It open the initial screen
@HeyFlutter
@HeyFlutter 8 месяцев назад
Thank You @vishalmethri7073! Follow this link: stackoverflow.com/questions/73552986/flutter-ios-app-is-not-opening-after-click-on-notification-while-app-is-termina I hope you will get your answer 🙂
@ScroatyDontKnow
@ScroatyDontKnow 7 месяцев назад
Were you able to solve this? I'm at the same issue
@shalinijain6210
@shalinijain6210 6 месяцев назад
@@ScroatyDontKnow did you find the soluation? I am also stuck at the same point.
@ScroatyDontKnow
@ScroatyDontKnow 6 месяцев назад
@@shalinijain6210 nope. I just ignored it and moved on unfortunately
@nguyenquinn6856
@nguyenquinn6856 7 месяцев назад
Do you have instructions for iOS?
@HeyFlutter
@HeyFlutter 7 месяцев назад
Thanks for the idea, @nguyenquinn6856! 🙂 I have added it to my list of ideas for future videos!
@mohammadjavadbahiraei6478
@mohammadjavadbahiraei6478 7 месяцев назад
please help me to config flutter web push notification. its not working on flutter web
@HeyFlutter
@HeyFlutter 7 месяцев назад
Thank You @mohammadjavadbahiraei6478! Follow this link: stackoverflow.com/questions/60929746/how-to-implement-flutter-web-push-notification I hope you will get your answer 🙂
Далее
24 часа в самом маленьком отеле
21:19
OG Buda - Сделай Мне Приятно Щас
02:24
Firebase Cloud Messaging API (v1) Tutorial
9:13
Просмотров 63 тыс.
Ever thought why We fail as Flutter Developer?
8:19
Flutter Push Notifications without Firebase (2022)
7:42