Flutter Push Notifications using Firebase

  Рет қаралды 265,531

HeyFlutter․com

HeyFlutter․com

Күн бұрын

Let's use Firebase Push Notifications in our Flutter app to send push notifications to different users through the Firebase console!
Need an App or Website?
👉Book a call now: calendly.com/d...
Source Code: github.com/Joh...
Twitter: / heyflutter_
Facebook: / heyflutter
Instagram: / heyflutter_
LinkedIn: / heyflutter
Website: heyflutter.com
#Flutter #Tutorial #HeyFlutter
Thanks For Watching :-)

Пікірлер: 392
@HeyFlutter
@HeyFlutter Жыл бұрын
Need an App or Website? 👉Book a call now: calendly.com/d/cqqg-njs-988
@santhoshl3414
@santhoshl3414 Жыл бұрын
The video is good but stop sharing source code link when it really doesn't contain source code.
@mgthree178
@mgthree178 Жыл бұрын
Indeed the video is good...but if using funnel strategy to get paid before releasing code, at least be transparent on it
@jobianstechie
@jobianstechie Жыл бұрын
​@@santhoshl3414she just wasting people time in name of getting source code
@Top10-u8k1x
@Top10-u8k1x Жыл бұрын
please dont waste time if you dont have to share the actual source code
@samsonloyshock3465
@samsonloyshock3465 7 ай бұрын
video is amazing but why wasting our time saying that you provide source code but it is a lie 😪😪
@richardgusmao1892
@richardgusmao1892 Жыл бұрын
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 Жыл бұрын
Glad to hear that, You are most welcome @richardgusmao1892! 😊
@MuhammadUsman-bm7qb
@MuhammadUsman-bm7qb 6 ай бұрын
@@HeyFlutter why we can not access source code
@winstonalf
@winstonalf Жыл бұрын
This is one of the best push notifications tutorial I have ever seen.. No nonsense. On to the point.
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad to hear that, Thank you @winstonalf! 😊
@Becoder15604
@Becoder15604 Жыл бұрын
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 Жыл бұрын
Thanks, for your support, @Becoder15604! 🙂
@Becoder15604
@Becoder15604 Жыл бұрын
@@HeyFlutter sir all the students are asking for the price and time when we will start
@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 Жыл бұрын
Thank you so much!
@HoaPham-kb5xv
@HoaPham-kb5xv Жыл бұрын
@@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 Жыл бұрын
@@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.
@cehpurushothaman6165
@cehpurushothaman6165 11 ай бұрын
Very clear notification tutorial thank you so much mam.
@HeyFlutter
@HeyFlutter 11 ай бұрын
You’re most welcome, @cehpurushothaman6165! 🙂
@river6634
@river6634 Жыл бұрын
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 Жыл бұрын
Glad you liked it, @river6634 😀
@phoenix155
@phoenix155 Жыл бұрын
Thanks for the tutorial❤❤❤
@HeyFlutter
@HeyFlutter 11 ай бұрын
You are welcome, @Phoenix155 😊
@noxtube7937
@noxtube7937 4 ай бұрын
thank you so much for this clear notification tutorial .👍👍👍
@HeyFlutter
@HeyFlutter 3 ай бұрын
I'm glad you liked it. 💙
@한챔-c5v
@한챔-c5v 4 ай бұрын
thank you a lot , really really thank you , this is best content for flutter and firebase
@HeyFlutter
@HeyFlutter 4 ай бұрын
Glad to hear that, You are most welcome @한챔-c5v
@samir9932
@samir9932 4 ай бұрын
Hey, is this video still relevant? did it work for you?
@brooklynStevee
@brooklynStevee Жыл бұрын
Absolutely the best video on flutter firebase cloud messaging
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad it was helpful, @brooklynStevee 😀
@yuyu1065
@yuyu1065 5 ай бұрын
Thanks. I'm beginner about flutter. And I'm web programmer. So I want make web app by using flutter. But it should be have alarm. I'm really appreciated you!!! Thanks!!!😊
@HeyFlutter
@HeyFlutter 5 ай бұрын
You are welcome, @yuyu1065!
@bytescript2
@bytescript2 8 ай бұрын
Look like Google analytics is required, btw you voice os very relaxing😇
@javhaasuhochir8126
@javhaasuhochir8126 7 ай бұрын
your voice is so soothing. you should do talking asmr.
@rihabjenzeri2981
@rihabjenzeri2981 10 ай бұрын
انت تونسة ، متأكدة أن أنت تونسية ، رغم أن تحكي بالإنجليزية ، بنت بلادي الغاليا ، ربي إوفقك
@HeyFlutter
@HeyFlutter 9 ай бұрын
Thank you, @rihabjenzeri2981! 🙂
@minakr-kr1
@minakr-kr1 8 ай бұрын
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 8 ай бұрын
Thank you, @AminaKarchoud! 🙂
@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 Жыл бұрын
@@coal_91 1. IOSInitializationSettings => I dont know what the changes. 2. await _localNotifications.initialize(onSelectNotification) => await _localNotifications.initialize(onDidReceiveNotificationResponse)
@liveghost8147
@liveghost8147 Жыл бұрын
@@MuhammadFaisal-ey5fr IOSInitializationSettings => DarwinInitializationSettings()
@QihFaqih1
@QihFaqih1 Жыл бұрын
@@MuhammadFaisal-ey5fr IOSInitializationSettings => DarwinInitializationSettings
@aweimngok
@aweimngok 9 ай бұрын
Just found this video, thank you so much, very helpfull for me
@HeyFlutter
@HeyFlutter 9 ай бұрын
Glad to hear that, You are most welcome @aweimngok
@augstudio1138
@augstudio1138 7 ай бұрын
This is awesome I love it
@HeyFlutter
@HeyFlutter 7 ай бұрын
Thank you, @augstudio1138! 🙂
@changethementality
@changethementality Жыл бұрын
This is amazing! Thank you!
@HeyFlutter
@HeyFlutter Жыл бұрын
You’re most welcome, @changethementality! 🙂
@prabufzs6301
@prabufzs6301 9 ай бұрын
Nice explanation ❤
@HeyFlutter
@HeyFlutter 9 ай бұрын
Thank you, @prabufzs6301! 🙂
@AjitSingh-rg3zu
@AjitSingh-rg3zu 8 ай бұрын
Thanks for this super useful video
@HeyFlutter
@HeyFlutter 8 ай бұрын
You’re most welcome, @AjitSingh-rg3zu! 🙂
@raulbenelli5454
@raulbenelli5454 10 ай бұрын
Hello from the future, nice video, but now the structure of gradle files is different, any suggestion? thanks
@HeyFlutter
@HeyFlutter 10 ай бұрын
Thank you, @raulbenelli5454! 🙂. Please try to provide enough details with your question.
@raulbenelli5454
@raulbenelli5454 10 ай бұрын
@@HeyFlutterThanks, but I was decided to try with firebase CLI and it work. thanks
@narusempai8678
@narusempai8678 9 ай бұрын
Thank you so much. It works
@HeyFlutter
@HeyFlutter 8 ай бұрын
Glad to hear that, You are most welcome @narusempai8678
@ganesh-br1iy
@ganesh-br1iy Жыл бұрын
Hyy I love your videos 🇮🇳🇮🇳
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, ganesh! 🙂
@ftrrhmn09
@ftrrhmn09 Жыл бұрын
I love this one!!!!!
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, @ftrrhmn09! 🙂
@squidproxy136
@squidproxy136 Жыл бұрын
great tutorial thanks
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @squidproxy136 😊
@gigamgamboa828
@gigamgamboa828 8 ай бұрын
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 8 ай бұрын
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 🙂
@souheil9227
@souheil9227 Жыл бұрын
You are definitely Tunisian!
@kiranjadhav4793
@kiranjadhav4793 Жыл бұрын
Thank you for the video..!
@HeyFlutter
@HeyFlutter Жыл бұрын
You’re most welcome, @kiranjadhav4793! 🙂
@thoriqikbar6894
@thoriqikbar6894 Жыл бұрын
good tutorial broooooo , thankss
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @thoriqikbar6894!
@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 🙂
@lxstreamyx
@lxstreamyx 4 ай бұрын
If I followed the FlutterFire CLI video I can skip to 2:54 right ?
@HeyFlutter
@HeyFlutter 4 ай бұрын
Thank you, @lxstreamyx! 🙂. Yes
@LoZioHomer
@LoZioHomer Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Thank you :D @@HeyFlutter
@benjaminsmith9943
@benjaminsmith9943 11 ай бұрын
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 11 ай бұрын
Thank you, @benjaminsmith9943! 🙂. Please try to provide enough details with your question
@benjaminsmith9943
@benjaminsmith9943 11 ай бұрын
@@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?
@crazy-man
@crazy-man Жыл бұрын
cool really helpful
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, @crazy-man! 🙂
@karandeepsingh1898
@karandeepsingh1898 Жыл бұрын
AWESOME EXPERIENCE💛
@HeyFlutter
@HeyFlutter Жыл бұрын
Great, thank you, @karandeepsingh1898! 🙂👍
@vincegelobuala4148
@vincegelobuala4148 Жыл бұрын
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 Жыл бұрын
Hey 😊, @vincegelobuala4148! Check out this solution: stackoverflow.com/a/74321941 I hope this may help you.
@AnthonyDev
@AnthonyDev Жыл бұрын
Great updated explanation, thanks.
@HeyFlutter
@HeyFlutter Жыл бұрын
You’re most welcome, @AnthonyDev! 🙂
@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
@ngjohn5224
@ngjohn5224 9 ай бұрын
u save my life
@HeyFlutter
@HeyFlutter 9 ай бұрын
Glad to hear that, Thank you @ngjohn5224! 😊
@HuyGiang-w1k
@HuyGiang-w1k 4 ай бұрын
Thanks for your video, it's really helpful for me but I have a question for you. When the app is in the background, how can I use another third-party notification package to display the incoming notification instead of the default notification?
@hashWorld-0
@hashWorld-0 3 ай бұрын
did you have code of this ???
@HeyFlutter
@HeyFlutter Ай бұрын
Thank you ❤️ for the suggestion! We’ll definitely consider it for our future content ideas. 😊
@maran.ath4
@maran.ath4 Жыл бұрын
quality quality content
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Cpt. Spiky Sire! 🙂
@jdphotograph
@jdphotograph Жыл бұрын
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 Жыл бұрын
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
@muhammadamineeuldji3036
@muhammadamineeuldji3036 Жыл бұрын
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 Жыл бұрын
Hey, @muhammadamineeuldji3036 🙂 You'll have to write logic on your api side
@Hanimiii97
@Hanimiii97 Жыл бұрын
Hey have you found a way to do it? I also have my own API and thinking how to do it.
@ka61er
@ka61er Жыл бұрын
@@Hanimiii97 read google document, this is easy because i tested
@collinskrubu220
@collinskrubu220 Ай бұрын
Thanks to you
@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!
@rodrodrigues1729
@rodrodrigues1729 Жыл бұрын
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 Жыл бұрын
Thank you, @rodrodrigues1729! 🙂. Kindly use the latest version.
@madhuribattina
@madhuribattina 4 ай бұрын
@HeyFlutter, Its working fine both foreground and background, Main issue is while app kills only navigate to main.dart, Please give me the required code only using flutter.
@HeyFlutter
@HeyFlutter 4 ай бұрын
Thank You @madhuribattina! Follow this link: stackoverflow.com/questions/53572110/flutter-push-notifications-even-if-the-app-is-closed I hope you will get your answer 🙂
@mennamohamd7405
@mennamohamd7405 Жыл бұрын
thanks very much
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @mennamohamd7405 😊
@_ritesh305
@_ritesh305 Жыл бұрын
would changing to minSdkVersion 21 make any difference? if yes what issues can i face?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, @_ritesh305! 🙂. I don't think so it will make any difference.
@MohamedMostafa-f6x
@MohamedMostafa-f6x 4 ай бұрын
Is it possible to generate a notification for each product added to app ( ecommerce app )? And do i have to add token for each device manually to DB ?
@HeyFlutter
@HeyFlutter 4 ай бұрын
Thank You @MohamedMostafa-f6x! Follow this link: stackoverflow.com/questions/61523281/scheduling-different-notifications-on-each-day-flutter I hope you will get your answer 🙂
@Nicosfrs
@Nicosfrs Жыл бұрын
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 Жыл бұрын
Thank you @Nicosfrs, make sure to follow the tutorial step by step 🙂
@JSquiff
@JSquiff Жыл бұрын
@@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 Жыл бұрын
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.
@zenitsux17
@zenitsux17 9 ай бұрын
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 9 ай бұрын
Hey @zenitsux17 you can use this code as it as it has already handled request case at 4:18
@alhaidarai
@alhaidarai 8 ай бұрын
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 8 ай бұрын
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 🙂
@talhaahmed-nb7tk
@talhaahmed-nb7tk Жыл бұрын
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 Жыл бұрын
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 🙂
@mwgmlg5600
@mwgmlg5600 Жыл бұрын
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 Жыл бұрын
Thank you, @mwgmlg5600! 🙂. Yes you can.
@mwgmlg5600
@mwgmlg5600 Жыл бұрын
can you show us how? I read from other source that it needs some kind of server, thanks@@HeyFlutter
@jontysingh4334
@jontysingh4334 Жыл бұрын
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 Жыл бұрын
Thanks for the idea @jontysingh4334 😀, i have added it in my list of future videos
@TuGordoBello
@TuGordoBello 3 ай бұрын
Muchas gracias
@HeyFlutter
@HeyFlutter 3 ай бұрын
I'm glad you liked it. 😊
@chooyinkeat2063
@chooyinkeat2063 Жыл бұрын
Then regarding the navigation, if i refer to your method. Can i make it dynamic ?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank You @chooyinkeat2063! Follow this link: selvaganesh93.medium.com/firebase-cloud-messaging-important-rest-apis-be79260022b5 I hope you will get your answer 🙂
@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.
@ZaferAst
@ZaferAst Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Thanks 🙂 @@HeyFlutter
@ZaferAst
@ZaferAst Жыл бұрын
Thank you for the answer @anozGosai Our message argument is the same. final message = ModalRoute.of(context)!.settings. Arguments;
@shalinijain6210
@shalinijain6210 Жыл бұрын
@@anozGosai I m getting the same issue , did you find any solution for the same?
@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 Жыл бұрын
You will have to use other plugins, for example: awesome_notifications
@abcreations9957
@abcreations9957 Жыл бұрын
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 Жыл бұрын
Hey 😊, @abcreations9957! Check out this solution: stackoverflow.com/a/62042816
@amjadvk7437
@amjadvk7437 10 ай бұрын
Can you please explain why u used the flutter local notations even when i can do all of them with fcm.
@HeyFlutter
@HeyFlutter 10 ай бұрын
Hey @amjadvk7437 😀 flutter local notifications is used to display heads up notification when app is opened.
@praveenpushkin5604
@praveenpushkin5604 Жыл бұрын
Actually it can be make a simple way, you made it very complecated
@HeyFlutter
@HeyFlutter Жыл бұрын
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.
@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 Жыл бұрын
@@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
@mahbubpasha6176
@mahbubpasha6176 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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?
@andyjobs96
@andyjobs96 6 ай бұрын
Hi, thanks for this tutorial! i'm trying to get access at source code, but when i try to register i had this error message : "some error occurred please try again". :(
@HeyFlutter
@HeyFlutter 6 ай бұрын
Thank You @andyjobs96!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@vatandas9412
@vatandas9412 Жыл бұрын
thank you
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @vatandas9412!
@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 ❤❤❤
@homeofgame2984
@homeofgame2984 11 ай бұрын
the code you put in flutter local notfication where did you get from the channel id and other ??
@HeyFlutter
@HeyFlutter 10 ай бұрын
Thank You @homeofgame2984!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@farzane_gharib
@farzane_gharib Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Thank you for your response. I have raised my issue here. I hope a solution will be found.@@HeyFlutter
@learnwithme20
@learnwithme20 Жыл бұрын
if i made it then all the devices if i make it in a state will get the notification?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, @learnwithme20! 🙂. Try to provide enough details with your question.
@templetonmeshack2816
@templetonmeshack2816 Жыл бұрын
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 Жыл бұрын
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 🙂
@tedlavender494
@tedlavender494 Жыл бұрын
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 Жыл бұрын
Thank you, @tedlavender494! 🙂. May be there is slight changes. You can see the official docs.
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr Жыл бұрын
IOSInitializationSettings() isnt defined. Is it because of differences of the library version? Can you tell us what the changes are?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, @MuhammadFaisal-ey5fr! 🙂. Kindly read the official docs.
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr Жыл бұрын
@@HeyFlutter Okay, thanks for the kind reply! Hey one more thing, do you have tutorial for iOS push notification too??
@juanxcueva
@juanxcueva Жыл бұрын
@@MuhammadFaisal-ey5fr use "DarwinInitializationSettings" instead
@junovicz
@junovicz Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Thank You @junovicz! Follow this link: stackoverflow.com/questions/73798602/ask-notifications-permission-in-flutter I hope you will get your answer 🙂
7 ай бұрын
what if the app is closed? which is most usecases?
@HeyFlutter
@HeyFlutter 6 ай бұрын
Thank You @abson-su2nz! Follow this link: firebase.google.com/docs/cloud-messaging/flutter/receive I hope you will get your answer 🙂
@អោកពៅ-ភ3ល
@អោកពៅ-ភ3ល Жыл бұрын
hellow,Thak for this video,can you make video about dynamic links connect with firebase ,if you make i really thank you
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for the idea, @user-qn4us9ex5h! 🙂 I have added it to my list of ideas for future videos!
@Murtaza-Shiraz
@Murtaza-Shiraz Жыл бұрын
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 Жыл бұрын
No it was perfect
@Shiryd
@Shiryd Жыл бұрын
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 Жыл бұрын
Consume it in chunks, Don't watch it fully if you get lost in the middle :)
@shuaibalghazali3405
@shuaibalghazali3405 9 ай бұрын
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 9 ай бұрын
Thank You @shuaibalghazali3405! Follow this link: stackoverflow.com/questions/70339106/how-to-detect-incoming-message-in-flutter I hope you will get your answer 🙂
@salmakhaled8024
@salmakhaled8024 6 ай бұрын
How i can allow permission for notification and disable it using switch inside flutter app without open app settings ?
@HeyFlutter
@HeyFlutter 5 ай бұрын
Thank You @salmakhaled8024! Follow this link: stackoverflow.com/questions/73798602/ask-notifications-permission-in-flutter I hope you will get your answer 🙂
@anandhar9329
@anandhar9329 11 ай бұрын
How to make the notification popup on the screen like other application. It's only shown in the status bar.
@HeyFlutter
@HeyFlutter 11 ай бұрын
Thank you, @anandhar9329! 🙂. Please try to provide enough details with your question
@anandhar9329
@anandhar9329 11 ай бұрын
@@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 11 ай бұрын
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.
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr Жыл бұрын
Hey, how about adding image in the Push Notification itself?
@HeyFlutter
@HeyFlutter Жыл бұрын
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 Жыл бұрын
@@HeyFlutter Thanks!
@flutterdiary
@flutterdiary Жыл бұрын
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 Жыл бұрын
Thanks for the idea, @flutterfix1340! 🙂 I have added it to my list of ideas for future videos!
@ijasinijeremiah5509
@ijasinijeremiah5509 Жыл бұрын
hey@@HeyFlutter do you have a video on this yet?
@emirhan2070
@emirhan2070 8 ай бұрын
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 8 ай бұрын
Hey @emirhan2070 😀 this behavior is not allowed by respective platforms
@masrafianam4343
@masrafianam4343 6 ай бұрын
Hello. I follow your tutorial. The notification working for foreground & background. But when I terminate the app, it is nor working. Is there any way or suggestion?
@HeyFlutter
@HeyFlutter 6 ай бұрын
Thank You @masrafianam4343! Follow this link: medium.com/@dimil/how-to-get-push-notification-events-when-app-is-terminated-in-flutter-c73ccdd2f790 I hope you will get your answer 🙂
@masrafianam4343
@masrafianam4343 6 ай бұрын
@@HeyFlutter It is solved. In release APK, working well.
@vickoalan
@vickoalan Жыл бұрын
this onSelectNotification is not working
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, vicko alan! 🙂. Try to provide enough details with your question whenever you face any issue.
@bbammjin
@bbammjin Жыл бұрын
Because You had a recent version of flutter_local_notifications plug-in. Same as I. so I solved this problem like this. await _localNotifications.initialize( settings, onDidReceiveNotificationResponse: (details) async { final message = RemoteMessage.fromMap(jsonDecode(details.payload!)); handleMessage(message); } );
@vickoalan
@vickoalan Жыл бұрын
@@bbammjin thank you so much
@bbammjin
@bbammjin Жыл бұрын
@@vickoalan I'm happy to help.😁
@jimlewisskoglund3585
@jimlewisskoglund3585 Жыл бұрын
Thanks for help. I had to add .toString() aswell await _localNotifications.initialize(settings, onDidReceiveNotificationResponse: (details) async { final message = RemoteMessage.fromMap(jsonDecode(details.payload.toString())); handleMessage(message); });
@nicolassangregorio606
@nicolassangregorio606 10 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
@@HeyFlutterthanks !
@MohammadAliKadiwala
@MohammadAliKadiwala 6 ай бұрын
How do I achieve full-screen notifications in Flutter?
@HeyFlutter
@HeyFlutter 6 ай бұрын
Thank You @MohammadAliKadiwala! Follow this link: pub.dev/packages/flutter_local_notifications#full-screen-intent-notifications I hope you will get your answer 🙂
@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 Жыл бұрын
I have the same issue. Did you manage to get this working?
@abhishekbhujel4158
@abhishekbhujel4158 11 ай бұрын
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 11 ай бұрын
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 🙂
@maazking9087
@maazking9087 Жыл бұрын
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 Жыл бұрын
Thank You @maazking9087! Follow this link: medium.com/@yshean/implementing-push-notifications-in-flutter-apps-aef98451e8f1 I hope you will get your answer 🙂
@sbndBhanu546
@sbndBhanu546 3 ай бұрын
Mam how to get notifications from flutter app when admin accepts/declines any request of student. Using firebase like we ever a student sends a request it is updated in admin side app in the respective page but now i want to push notification
@HeyFlutter
@HeyFlutter Ай бұрын
Thank you ❤️ for the suggestion! We’ll definitely consider it for our future content ideas. 😊
@iremerdogan8140
@iremerdogan8140 8 ай бұрын
Min. Can't I set the SDK version to 19? Is it right to keep it as it is default?
@HeyFlutter
@HeyFlutter 8 ай бұрын
Thank you, @iremerdogan8140! 🙂. Yes, in some cases you need to change it.
@oussamasbisiane4544
@oussamasbisiane4544 9 ай бұрын
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 9 ай бұрын
Thanks for the idea @oussamasbisiane4544 😀, i have added it in my list of future videos
@oussamasbisiane4544
@oussamasbisiane4544 9 ай бұрын
@@HeyFlutter i can provide u the code if u want i solve the problem
@vibenep
@vibenep Жыл бұрын
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 Жыл бұрын
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 🙂
@nguyenquinn6856
@nguyenquinn6856 Жыл бұрын
Do you have instructions for iOS?
@HeyFlutter
@HeyFlutter Жыл бұрын
Thanks for the idea, @nguyenquinn6856! 🙂 I have added it to my list of ideas for future videos!
@chooyinkeat2063
@chooyinkeat2063 Жыл бұрын
Just curious, does that mean the code you provide can be consider as push and local notification?
@brayantiwa
@brayantiwa Жыл бұрын
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.
How to Make Responsive Texts in Flutter
2:07
HeyFlutter․com
Рет қаралды 23 М.
Strange dances 😂 Squid Game
00:22
عائلة ابو رعد Abo Raad family
Рет қаралды 29 МЛН
Thank you 😅
00:15
Nadir Show
Рет қаралды 46 МЛН
На ЭТО можно смотреть БЕСКОНЕЧНО 👌👌👌
01:00
БЕЗУМНЫЙ СПОРТ
Рет қаралды 4,4 МЛН
📱Android Push Notifications • Flutter x Firebase Tutorial
12:39
I Spent 100 Hours Inside The Pyramids!
21:43
MrBeast
Рет қаралды 76 МЛН
OneSignal Notifications in Flutter Made Easy | Step-by-Step Tutorial
11:11
How to Implement Firebase Push Notifications on Android (FCM + Backend)
1:06:31
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
Level 1 to 100 Science Experiments
15:53
Hafu Go
Рет қаралды 19 МЛН
🔔📱 Local Notifications • Flutter Tutorial
8:01
Mitch Koko
Рет қаралды 11 М.