No video

Flutter Push Notifications using Firebase

  Рет қаралды 222,895

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!
👉 12 Week Flutter Training | heyflutter.com
👉 Flutter Masterclass Courses | heyflutter.com...
Source Code: github.com/Joh...
Twitter: / heyflutter_
Facebook: / heyflutter
Instagram: / heyflutter_
LinkedIn: / heyflutter
Website: heyflutter.com
#Flutter #Tutorial #HeyFlutter
Thanks For Watching :-)

Пікірлер: 360
@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 Жыл бұрын
Indeed the video is good...but if using funnel strategy to get paid before releasing code, at least be transparent on it
@jobianstechie
@jobianstechie 8 ай бұрын
​@@santhoshl3414she just wasting people time in name of getting source code
@user-pi1wr6ik2b
@user-pi1wr6ik2b 7 ай бұрын
please dont waste time if you dont have to share the actual source code
@samsonloyshock3465
@samsonloyshock3465 2 ай бұрын
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 Ай бұрын
@@HeyFlutter why we can not access source code
@winstonalf
@winstonalf 11 ай бұрын
This is one of the best push notifications tutorial I have ever seen.. No nonsense. On to the point.
@HeyFlutter
@HeyFlutter 11 ай бұрын
Glad to hear that, Thank you @winstonalf! 😊
@yuyu1065
@yuyu1065 21 сағат бұрын
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!!!😊
@Becoder15604
@Becoder15604 11 ай бұрын
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 11 ай бұрын
Thanks, for your support, @Becoder15604! 🙂
@Becoder15604
@Becoder15604 11 ай бұрын
@@HeyFlutter sir all the students are asking for the price and time when we will start
@javhaasuhochir8126
@javhaasuhochir8126 Ай бұрын
your voice is so soothing. you should do talking asmr.
@bytescript2
@bytescript2 2 ай бұрын
Look like Google analytics is required, btw you voice os very relaxing😇
@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 9 ай бұрын
@@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 9 ай бұрын
@@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.
@brooklynStevee
@brooklynStevee Жыл бұрын
Absolutely the best video on flutter firebase cloud messaging
@HeyFlutter
@HeyFlutter Жыл бұрын
Glad it was helpful, @brooklynStevee 😀
@river6634
@river6634 7 ай бұрын
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 7 ай бұрын
Glad you liked it, @river6634 😀
@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
@cehpurushothaman6165
@cehpurushothaman6165 5 ай бұрын
Very clear notification tutorial thank you so much mam.
@HeyFlutter
@HeyFlutter 5 ай бұрын
You’re most welcome, @cehpurushothaman6165! 🙂
@AminaKarchoud
@AminaKarchoud 2 ай бұрын
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 2 ай бұрын
Thank you, @AminaKarchoud! 🙂
@rihabjenzeri2981
@rihabjenzeri2981 4 ай бұрын
انت تونسة ، متأكدة أن أنت تونسية ، رغم أن تحكي بالإنجليزية ، بنت بلادي الغاليا ، ربي إوفقك
@HeyFlutter
@HeyFlutter 4 ай бұрын
Thank you, @rihabjenzeri2981! 🙂
@ZaferAst
@ZaferAst 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
Thanks 🙂 @@HeyFlutter
@ZaferAst
@ZaferAst 11 ай бұрын
Thank you for the answer @anozGosai Our message argument is the same. final message = ModalRoute.of(context)!.settings. Arguments;
@shalinijain6210
@shalinijain6210 7 ай бұрын
@@anozGosai I m getting the same issue , did you find any solution for the same?
@phoenix155
@phoenix155 6 ай бұрын
Thanks for the tutorial❤❤❤
@HeyFlutter
@HeyFlutter 6 ай бұрын
You are welcome, @Phoenix155 😊
@ganesh-br1iy
@ganesh-br1iy Жыл бұрын
Hyy I love your videos 🇮🇳🇮🇳
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, ganesh! 🙂
@aweimngok
@aweimngok 3 ай бұрын
Just found this video, thank you so much, very helpfull for me
@HeyFlutter
@HeyFlutter 3 ай бұрын
Glad to hear that, You are most welcome @aweimngok
@souheil9227
@souheil9227 Жыл бұрын
You are definitely Tunisian!
@rodrodrigues1729
@rodrodrigues1729 11 ай бұрын
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 11 ай бұрын
Thank you, @rodrodrigues1729! 🙂. Kindly use the latest version.
@raulbenelli5454
@raulbenelli5454 5 ай бұрын
Hello from the future, nice video, but now the structure of gradle files is different, any suggestion? thanks
@HeyFlutter
@HeyFlutter 5 ай бұрын
Thank you, @raulbenelli5454! 🙂. Please try to provide enough details with your question.
@raulbenelli5454
@raulbenelli5454 5 ай бұрын
@@HeyFlutterThanks, but I was decided to try with firebase CLI and it work. thanks
@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!
@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 🙂
@gigamgamboa828
@gigamgamboa828 2 ай бұрын
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 2 ай бұрын
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 🙂
@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
@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
@AnthonyDev
@AnthonyDev Жыл бұрын
Great updated explanation, thanks.
@HeyFlutter
@HeyFlutter Жыл бұрын
You’re most welcome, @AnthonyDev! 🙂
@AjitSingh-rg3zu
@AjitSingh-rg3zu 3 ай бұрын
Thanks for this super useful video
@HeyFlutter
@HeyFlutter 3 ай бұрын
You’re most welcome, @AjitSingh-rg3zu! 🙂
@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.
@LoZioHomer
@LoZioHomer 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
Thank you :D @@HeyFlutter
@emirhan2070
@emirhan2070 3 ай бұрын
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 3 ай бұрын
Hey @emirhan2070 😀 this behavior is not allowed by respective platforms
@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 11 ай бұрын
@@Hanimiii97 read google document, this is easy because i tested
@changethementality
@changethementality 7 ай бұрын
This is amazing! Thank you!
@HeyFlutter
@HeyFlutter 7 ай бұрын
You’re most welcome, @changethementality! 🙂
@prabufzs6301
@prabufzs6301 4 ай бұрын
Nice explanation ❤
@HeyFlutter
@HeyFlutter 3 ай бұрын
Thank you, @prabufzs6301! 🙂
@ftrrhmn09
@ftrrhmn09 11 ай бұрын
I love this one!!!!!
@HeyFlutter
@HeyFlutter 11 ай бұрын
Thank you, @ftrrhmn09! 🙂
@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 11 ай бұрын
@@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
@_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.
@HalimHalim-xf7zo
@HalimHalim-xf7zo 3 ай бұрын
is the code free?
@HeyFlutter
@HeyFlutter 3 ай бұрын
Thank You @HalimHalim-xf7zo!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@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.
@talhaahmed-nb7tk
@talhaahmed-nb7tk 11 ай бұрын
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 11 ай бұрын
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 🙂
@salmakhaled8024
@salmakhaled8024 16 күн бұрын
How i can allow permission for notification and disable it using switch inside flutter app without open app settings ?
@HeyFlutter
@HeyFlutter 11 күн бұрын
Thank You @salmakhaled8024! Follow this link: stackoverflow.com/questions/73798602/ask-notifications-permission-in-flutter I hope you will get your answer 🙂
@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 Жыл бұрын
No it was perfect
@Shiryd
@Shiryd 9 ай бұрын
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 6 ай бұрын
Consume it in chunks, Don't watch it fully if you get lost in the middle :)
@andyjobs96
@andyjobs96 24 күн бұрын
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 18 күн бұрын
Thank You @andyjobs96!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@augstudio1138
@augstudio1138 Ай бұрын
This is awesome I love it
@HeyFlutter
@HeyFlutter Ай бұрын
Thank you, @augstudio1138! 🙂
@zenitsux17
@zenitsux17 3 ай бұрын
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 3 ай бұрын
Hey @zenitsux17 you can use this code as it as it has already handled request case at 4:18
@masrafianam4343
@masrafianam4343 23 күн бұрын
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 18 күн бұрын
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 17 күн бұрын
@@HeyFlutter It is solved. In release APK, working well.
@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
@shuaibalghazali3405
@shuaibalghazali3405 3 ай бұрын
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 3 ай бұрын
Thank You @shuaibalghazali3405! Follow this link: stackoverflow.com/questions/70339106/how-to-detect-incoming-message-in-flutter I hope you will get your answer 🙂
@karandeepsingh1898
@karandeepsingh1898 Жыл бұрын
AWESOME EXPERIENCE💛
@HeyFlutter
@HeyFlutter Жыл бұрын
Great, thank you, @karandeepsingh1898! 🙂👍
@alhaidarai
@alhaidarai 2 ай бұрын
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 2 ай бұрын
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 🙂
@narusempai8678
@narusempai8678 3 ай бұрын
Thank you so much. It works
@HeyFlutter
@HeyFlutter 3 ай бұрын
Glad to hear that, You are most welcome @narusempai8678
@amjadvk7437
@amjadvk7437 5 ай бұрын
Can you please explain why u used the flutter local notations even when i can do all of them with fcm.
@HeyFlutter
@HeyFlutter 5 ай бұрын
Hey @amjadvk7437 😀 flutter local notifications is used to display heads up notification when app is opened.
@MohammadAliKadiwala
@MohammadAliKadiwala Ай бұрын
How do I achieve full-screen notifications in Flutter?
@HeyFlutter
@HeyFlutter 27 күн бұрын
Thank You @MohammadAliKadiwala! Follow this link: pub.dev/packages/flutter_local_notifications#full-screen-intent-notifications I hope you will get your answer 🙂
@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); });
@vincegelobuala4148
@vincegelobuala4148 10 ай бұрын
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 10 ай бұрын
Hey 😊, @vincegelobuala4148! Check out this solution: stackoverflow.com/a/74321941 I hope this may help you.
@squidproxy136
@squidproxy136 Жыл бұрын
great tutorial thanks
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @squidproxy136 😊
@Ahmed-ui5wn
@Ahmed-ui5wn 3 ай бұрын
Great video, but iOS implementation is missing...
@HeyFlutter
@HeyFlutter 3 ай бұрын
Thanks for your feedback, @Ahmed-ui5wn! 🙂
@iremerdogan8140
@iremerdogan8140 3 ай бұрын
Min. Can't I set the SDK version to 19? Is it right to keep it as it is default?
@HeyFlutter
@HeyFlutter 3 ай бұрын
Thank you, @iremerdogan8140! 🙂. Yes, in some cases you need to change it.
@mwgmlg5600
@mwgmlg5600 8 ай бұрын
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 8 ай бұрын
Thank you, @mwgmlg5600! 🙂. Yes you can.
@mwgmlg5600
@mwgmlg5600 8 ай бұрын
can you show us how? I read from other source that it needs some kind of server, thanks@@HeyFlutter
@abcreations9957
@abcreations9957 11 ай бұрын
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 11 ай бұрын
Hey 😊, @abcreations9957! Check out this solution: stackoverflow.com/a/62042816
@kiranjadhav4793
@kiranjadhav4793 Жыл бұрын
Thank you for the video..!
@HeyFlutter
@HeyFlutter Жыл бұрын
You’re most welcome, @kiranjadhav4793! 🙂
@maran.ath4
@maran.ath4 Жыл бұрын
quality quality content
@HeyFlutter
@HeyFlutter Жыл бұрын
Thank you, Cpt. Spiky Sire! 🙂
@corepuncher
@corepuncher 4 ай бұрын
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 4 ай бұрын
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.
Ай бұрын
what if the app is closed? which is most usecases?
@HeyFlutter
@HeyFlutter Ай бұрын
Thank You @abson-su2nz! Follow this link: firebase.google.com/docs/cloud-messaging/flutter/receive I hope you will get your answer 🙂
@chooyinkeat2063
@chooyinkeat2063 11 ай бұрын
Then regarding the navigation, if i refer to your method. Can i make it dynamic ?
@HeyFlutter
@HeyFlutter 11 ай бұрын
Thank You @chooyinkeat2063! Follow this link: selvaganesh93.medium.com/firebase-cloud-messaging-important-rest-apis-be79260022b5 I hope you will get your answer 🙂
@mahbubpasha6176
@mahbubpasha6176 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
@@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?
@chooyinkeat2063
@chooyinkeat2063 Жыл бұрын
Just curious, does that mean the code you provide can be consider as push and local notification?
@brayantiwa
@brayantiwa 9 ай бұрын
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.
@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 11 ай бұрын
You will have to use other plugins, for example: awesome_notifications
@s.bamahfoodh
@s.bamahfoodh 3 ай бұрын
why did you add an Android app when You can add a Flutter app in Firebase??
@HeyFlutter
@HeyFlutter 3 ай бұрын
Thank you, @s.bamahfoodh! 🙂. Yes you can do that as well now.
@tedlavender494
@tedlavender494 9 ай бұрын
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 9 ай бұрын
Thank you, @tedlavender494! 🙂. May be there is slight changes. You can see the official docs.
@benjaminsmith9943
@benjaminsmith9943 5 ай бұрын
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 5 ай бұрын
Thank you, @benjaminsmith9943! 🙂. Please try to provide enough details with your question
@benjaminsmith9943
@benjaminsmith9943 5 ай бұрын
@@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?
@thoriqikbar6894
@thoriqikbar6894 Жыл бұрын
good tutorial broooooo , thankss
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @thoriqikbar6894!
@maazking9087
@maazking9087 11 ай бұрын
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 11 ай бұрын
Thank You @maazking9087! Follow this link: medium.com/@yshean/implementing-push-notifications-in-flutter-apps-aef98451e8f1 I hope you will get your answer 🙂
@vlknkc
@vlknkc Ай бұрын
I request access to the codes but I get an error.
@HeyFlutter
@HeyFlutter Ай бұрын
Thank You @vlknkc!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@homeofgame2984
@homeofgame2984 5 ай бұрын
the code you put in flutter local notfication where did you get from the channel id and other ??
@HeyFlutter
@HeyFlutter 5 ай бұрын
Thank You @homeofgame2984!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware
@abhishekbhujel4158
@abhishekbhujel4158 6 ай бұрын
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 6 ай бұрын
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 🙂
@oussamasbisiane4544
@oussamasbisiane4544 3 ай бұрын
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 3 ай бұрын
Thanks for the idea @oussamasbisiane4544 😀, i have added it in my list of future videos
@oussamasbisiane4544
@oussamasbisiane4544 3 ай бұрын
@@HeyFlutter i can provide u the code if u want i solve the problem
@jontysingh4334
@jontysingh4334 7 ай бұрын
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 7 ай бұрын
Thanks for the idea @jontysingh4334 😀, i have added it in my list of future videos
@anozGosai
@anozGosai 11 ай бұрын
I am getting this error. The getter 'notification' isn't defined for the type 'Object'.
@HeyFlutter
@HeyFlutter 11 ай бұрын
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 🙂
@anandhar9329
@anandhar9329 5 ай бұрын
How to make the notification popup on the screen like other application. It's only shown in the status bar.
@HeyFlutter
@HeyFlutter 5 ай бұрын
Thank you, @anandhar9329! 🙂. Please try to provide enough details with your question
@anandhar9329
@anandhar9329 5 ай бұрын
@@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 5 ай бұрын
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.
@farzane_gharib
@farzane_gharib 9 ай бұрын
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 9 ай бұрын
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 9 ай бұрын
Thank you for your response. I have raised my issue here. I hope a solution will be found.@@HeyFlutter
@templetonmeshack2816
@templetonmeshack2816 7 ай бұрын
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 7 ай бұрын
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 🙂
@ngjohn5224
@ngjohn5224 4 ай бұрын
u save my life
@HeyFlutter
@HeyFlutter 3 ай бұрын
Glad to hear that, Thank you @ngjohn5224! 😊
@miserablecount
@miserablecount Ай бұрын
Hey the request access to the source code is not working
@HeyFlutter
@HeyFlutter Ай бұрын
Hey @miserablecount 😀 you need to subscribe on github to access code.
@junovicz
@junovicz 11 ай бұрын
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 11 ай бұрын
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 11 ай бұрын
Thank You @junovicz! Follow this link: stackoverflow.com/questions/73798602/ask-notifications-permission-in-flutter I hope you will get your answer 🙂
@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 Жыл бұрын
@@diprajroy8552 were you able to fix this?
@saratm9973
@saratm9973 6 ай бұрын
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 6 ай бұрын
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 🙂
@learnwithme20
@learnwithme20 11 ай бұрын
if i made it then all the devices if i make it in a state will get the notification?
@HeyFlutter
@HeyFlutter 10 ай бұрын
Thank you, @learnwithme20! 🙂. Try to provide enough details with your question.
@vibenep
@vibenep 7 ай бұрын
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 7 ай бұрын
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 🙂
@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 9 ай бұрын
I have the same issue. Did you manage to get this working?
@nicolassangregorio606
@nicolassangregorio606 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@HeyFlutterthanks !
@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 9 ай бұрын
hey@@HeyFlutter do you have a video on this yet?
@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 ❤❤❤
@crazy-man
@crazy-man 11 ай бұрын
cool really helpful
@HeyFlutter
@HeyFlutter 11 ай бұрын
Thank you, @crazy-man! 🙂
@mennamohamd7405
@mennamohamd7405 Жыл бұрын
thanks very much
@HeyFlutter
@HeyFlutter Жыл бұрын
You are welcome, @mennamohamd7405 😊
@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.
@maazking9087
@maazking9087 11 ай бұрын
why are the notifications not popping up?
@HeyFlutter
@HeyFlutter 11 ай бұрын
Thank You @maazking9087! Follow this link: medium.com/@alaa07996/firebase-push-notifications-with-flutter-6848892a1c15 I hope you will get your answer 🙂
@MuhammadFaisal-ey5fr
@MuhammadFaisal-ey5fr 11 ай бұрын
Hey, how about adding image in the Push Notification itself?
@HeyFlutter
@HeyFlutter 11 ай бұрын
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 11 ай бұрын
@@HeyFlutter Thanks!
@praveenpushkin5604
@praveenpushkin5604 8 ай бұрын
Actually it can be make a simple way, you made it very complecated
@HeyFlutter
@HeyFlutter 7 ай бұрын
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.
@abhishekbhujel4158
@abhishekbhujel4158 6 ай бұрын
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 6 ай бұрын
Thanks for the idea, @abhishekbhujel4158! 🙂 I have added it to my list of ideas for future videos!
📱Android Push Notifications • Flutter x Firebase Tutorial
12:39
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,6 МЛН
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 532 М.
А ВЫ УМЕЕТЕ ПЛАВАТЬ?? #shorts
00:21
Паша Осадчий
Рет қаралды 2 МЛН
How to Implement Firebase Push Notifications on Android (FCM + Backend)
1:06:31
Ever thought why We fail as Flutter Developer?
8:19
HeyFlutter․com
Рет қаралды 9 М.
Flutter push notifications using firebase. || foreground and background
24:29
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 551 М.
Firebase Cloud Messaging API (v1) Tutorial
9:13
Native Notify
Рет қаралды 71 М.
Flutter Android, Web & iOS Push notifications with Firebase messaging
50:54
Flutter Firebase Push Notifications Tutorial | 2024
53:20
Snehasis Ghosh
Рет қаралды 15 М.
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,6 МЛН