Flutter Push Notifications using Firebase

Поделиться
HTML-код
  • Опубликовано: 4 июн 2023
  • 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 :-)
  • НаукаНаука

Комментарии • 333

  • @HeyFlutter
    @HeyFlutter  Год назад +11

    👉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 10 месяцев назад +12

      The video is good but stop sharing source code link when it really doesn't contain source code.

    • @mgthree178
      @mgthree178 9 месяцев назад +3

      Indeed the video is good...but if using funnel strategy to get paid before releasing code, at least be transparent on it

    • @jobianstechie
      @jobianstechie 5 месяцев назад +1

      ​@@santhoshl3414she just wasting people time in name of getting source code

    • @user-pi1wr6ik2b
      @user-pi1wr6ik2b 5 месяцев назад +1

      please dont waste time if you dont have to share the actual source code

  • @richardgusmao1892
    @richardgusmao1892 10 месяцев назад +6

    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  10 месяцев назад

      Glad to hear that, You are most welcome @richardgusmao1892! 😊

  • @winstonalf
    @winstonalf 8 месяцев назад +7

    This is one of the best push notifications tutorial I have ever seen.. No nonsense. On to the point.

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад

      Glad to hear that, Thank you @winstonalf! 😊

  • @brooklynStevee
    @brooklynStevee 11 месяцев назад +1

    Absolutely the best video on flutter firebase cloud messaging

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      Glad it was helpful, @brooklynStevee 😀

  • @river6634
    @river6634 4 месяца назад

    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  4 месяца назад

      Glad you liked it, @river6634 😀

  • @DEVMIND-bq1eu
    @DEVMIND-bq1eu 8 месяцев назад

    Thank you so much for this, it was super helpful! Subbed and liked!

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад +1

      Thanks, @DEVMIND-bq1eu! 🙂

  • @AnthonyDev
    @AnthonyDev 9 месяцев назад

    Great updated explanation, thanks.

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад

      You’re most welcome, @AnthonyDev! 🙂

  • @Becoder15604
    @Becoder15604 8 месяцев назад

    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  8 месяцев назад

      Thanks, for your support, @Becoder15604! 🙂

    • @Becoder15604
      @Becoder15604 8 месяцев назад

      @@HeyFlutter sir all the students are asking for the price and time when we will start

  • @Phoenix155
    @Phoenix155 3 месяца назад

    Thanks for the tutorial❤❤❤

    • @HeyFlutter
      @HeyFlutter  3 месяца назад

      You are welcome, @Phoenix155 😊

  • @changethementality
    @changethementality 4 месяца назад

    This is amazing! Thank you!

    • @HeyFlutter
      @HeyFlutter  4 месяца назад

      You’re most welcome, @changethementality! 🙂

  • @cehpurushothaman6165
    @cehpurushothaman6165 2 месяца назад

    Very clear notification tutorial thank you so much mam.

    • @HeyFlutter
      @HeyFlutter  2 месяца назад

      You’re most welcome, @cehpurushothaman6165! 🙂

  • @AjitSingh-rg3zu
    @AjitSingh-rg3zu 14 дней назад

    Thanks for this super useful video

    • @HeyFlutter
      @HeyFlutter  13 дней назад

      You’re most welcome, @AjitSingh-rg3zu! 🙂

  • @narusempai8678
    @narusempai8678 23 дня назад

    Thank you so much. It works

    • @HeyFlutter
      @HeyFlutter  19 дней назад

      Glad to hear that, You are most welcome @narusempai8678

  • @aweimngok
    @aweimngok Месяц назад

    Just found this video, thank you so much, very helpfull for me

    • @HeyFlutter
      @HeyFlutter  27 дней назад

      Glad to hear that, You are most welcome @aweimngok

  • @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?

  • @ftrrhmn09
    @ftrrhmn09 8 месяцев назад +1

    I love this one!!!!!

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад +1

      Thank you, @ftrrhmn09! 🙂

  • @karandeepsingh1898
    @karandeepsingh1898 11 месяцев назад

    AWESOME EXPERIENCE💛

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      Great, thank you, @karandeepsingh1898! 🙂👍

  • @squidproxy136
    @squidproxy136 9 месяцев назад

    great tutorial thanks

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад +1

      You are welcome, @squidproxy136 😊

  • @prabufzs6301
    @prabufzs6301 Месяц назад

    Nice explanation ❤

    • @HeyFlutter
      @HeyFlutter  Месяц назад

      Thank you, @prabufzs6301! 🙂

  • @kiranjadhav4793
    @kiranjadhav4793 9 месяцев назад

    Thank you for the video..!

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад

      You’re most welcome, @kiranjadhav4793! 🙂

  • @rodrodrigues1729
    @rodrodrigues1729 8 месяцев назад +2

    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  8 месяцев назад

      Thank you, @rodrodrigues1729! 🙂. Kindly use the latest version.

  • @jdphotograph
    @jdphotograph 10 месяцев назад +1

    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  10 месяцев назад

      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 10 месяцев назад +1

    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  10 месяцев назад

      Hey, @muhammadamineeuldji3036 🙂 You'll have to write logic on your api side

    • @Hanimiii97
      @Hanimiii97 10 месяцев назад

      Hey have you found a way to do it? I also have my own API and thinking how to do it.

    • @ka61er
      @ka61er 8 месяцев назад

      @@Hanimiii97 read google document, this is easy because i tested

  • @thoriqikbar6894
    @thoriqikbar6894 9 месяцев назад

    good tutorial broooooo , thankss

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад

      You are welcome, @thoriqikbar6894!

  • @anzoumanacisse237
    @anzoumanacisse237 Год назад

    Hey !!! Thank you for this tutorial.
    In my case i want to use push notification without firebase. For exemple laravel on background

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Thank you, Anzoumana Cissé! 🙂

    • @DraskoSaric
      @DraskoSaric 9 месяцев назад

      You will have to use other plugins, for example: awesome_notifications

  • @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  Год назад +1

      Thank You mr. knight. Visit this website: heyflutter.com

  • @marana.th4
    @marana.th4 Год назад +1

    quality quality content

    • @HeyFlutter
      @HeyFlutter  Год назад

      Thank you, Cpt. Spiky Sire! 🙂

  • @_ritesh305
    @_ritesh305 10 месяцев назад +1

    would changing to minSdkVersion 21 make any difference? if yes what issues can i face?

    • @HeyFlutter
      @HeyFlutter  10 месяцев назад

      Thank you, @_ritesh305! 🙂. I don't think so it will make any difference.

  • @EasierGames
    @EasierGames 11 месяцев назад +7

    Some configurations are changed in the latest flutter_local_notifications package version

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад +3

      Hey, @EasierGames 🙂 thanks for updating. We'll try to bring updated tutorial on channel

    • @coal_91
      @coal_91 10 месяцев назад

      what exactly did change?

    • @MuhammadFaisal-ey5fr
      @MuhammadFaisal-ey5fr 9 месяцев назад +5

      @@coal_91
      1. IOSInitializationSettings => I dont know what the changes.
      2. await _localNotifications.initialize(onSelectNotification) => await _localNotifications.initialize(onDidReceiveNotificationResponse)

    • @liveghost8147
      @liveghost8147 9 месяцев назад

      @@MuhammadFaisal-ey5fr IOSInitializationSettings => DarwinInitializationSettings()

    • @QihFaqih1
      @QihFaqih1 9 месяцев назад

      @@MuhammadFaisal-ey5fr IOSInitializationSettings => DarwinInitializationSettings

  • @talhaahmed-nb7tk
    @talhaahmed-nb7tk 8 месяцев назад +1

    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  8 месяцев назад

      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 🙂

  • @bbammjin
    @bbammjin Год назад +6

    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 Год назад +7

      Never mind, I change my code to "final message = ModalRoute.of(context)!.settings.arguments as RemoteMessage;" and it works!😂

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Great, Thank you BBAMMJIN!

    • @BOSSandCHOCO
      @BOSSandCHOCO 9 месяцев назад +1

      Thank you so much!

    • @HoaPham-kb5xv
      @HoaPham-kb5xv 6 месяцев назад

      @@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 6 месяцев назад +1

      @@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.

  • @SurajGupta-qu7uo
    @SurajGupta-qu7uo 11 месяцев назад

    Awesome thanks, could you please make seperate video for IOS too. lot of issues we are facing.

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      Thanks for the idea, @SurajGupta-qu7uo! 🙂 I have added it to my list of ideas for future videos!

    • @SurajGupta-qu7uo
      @SurajGupta-qu7uo 11 месяцев назад

      @@HeyFlutter thanks for accepting my ideas.

  • @chooyinkeat2063
    @chooyinkeat2063 8 месяцев назад

    Then regarding the navigation, if i refer to your method. Can i make it dynamic ?

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад

      Thank You @chooyinkeat2063! Follow this link: selvaganesh93.medium.com/firebase-cloud-messaging-important-rest-apis-be79260022b5
      I hope you will get your answer 🙂

  • @chooyinkeat2063
    @chooyinkeat2063 9 месяцев назад

    Just curious, does that mean the code you provide can be consider as push and local notification?

    • @brayantiwa
      @brayantiwa 6 месяцев назад

      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.

  • @moubiswasEdits
    @moubiswasEdits 11 месяцев назад

    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 11 месяцев назад

      btw thanks for the English Subtitles though, it was helpful to understand

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      You are welcome, @moubiswasEdits!

  • @crazy-man
    @crazy-man 8 месяцев назад

    cool really helpful

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад

      Thank you, @crazy-man! 🙂

  • @alaalahlouh4024
    @alaalahlouh4024 Год назад +2

    Can you make a video about how to make the bottom navigation bar show up permanently

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Thank You Ala'a Lahlouh! Follow this link: pub.dev/packages/persistent_bottom_nav_bar
      I hope you will get your answer 🙂

  • @mennamohamd7405
    @mennamohamd7405 10 месяцев назад

    thanks very much

    • @HeyFlutter
      @HeyFlutter  10 месяцев назад

      You are welcome, @mennamohamd7405 😊

  • @vincegelobuala4148
    @vincegelobuala4148 7 месяцев назад

    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  7 месяцев назад

      Hey 😊, @vincegelobuala4148! Check out this solution: stackoverflow.com/a/74321941 I hope this may help you.

  • @zenitsux17
    @zenitsux17 27 дней назад

    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  24 дня назад

      Hey @zenitsux17 you can use this code as it as it has already handled request case at 4:18

  • @Nicosfrs
    @Nicosfrs 10 месяцев назад +1

    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  10 месяцев назад

      Thank you @Nicosfrs, make sure to follow the tutorial step by step 🙂

    • @JSquiff
      @JSquiff 9 месяцев назад

      @@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 9 месяцев назад

      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.

  • @ngjohn5224
    @ngjohn5224 Месяц назад

    u save my life

    • @HeyFlutter
      @HeyFlutter  Месяц назад

      Glad to hear that, Thank you @ngjohn5224! 😊

  • @LoZioHomer
    @LoZioHomer 4 месяца назад

    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  4 месяца назад

      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 4 месяца назад

      Thank you :D @@HeyFlutter

  • @ganesh-br1iy
    @ganesh-br1iy Год назад +2

    Hyy I love your videos 🇮🇳🇮🇳

  • @mwgmlg5600
    @mwgmlg5600 6 месяцев назад

    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  6 месяцев назад

      Thank you, @mwgmlg5600! 🙂. Yes you can.

    • @mwgmlg5600
      @mwgmlg5600 6 месяцев назад

      can you show us how? I read from other source that it needs some kind of server, thanks@@HeyFlutter

  • @vatandas9412
    @vatandas9412 10 месяцев назад

    thank you

    • @HeyFlutter
      @HeyFlutter  10 месяцев назад

      You are welcome, @vatandas9412!

  • @hammadalive
    @hammadalive 9 месяцев назад

    Great explanation, thanks.

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад

      You are welcome, @hammadalive!

  • @abcreations9957
    @abcreations9957 9 месяцев назад

    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  8 месяцев назад

      Hey 😊, @abcreations9957! Check out this solution: stackoverflow.com/a/62042816

  • @amjadvk7437
    @amjadvk7437 2 месяца назад

    Can you please explain why u used the flutter local notations even when i can do all of them with fcm.

    • @HeyFlutter
      @HeyFlutter  2 месяца назад +1

      Hey @amjadvk7437 😀 flutter local notifications is used to display heads up notification when app is opened.

  • @templetonmeshack2816
    @templetonmeshack2816 4 месяца назад

    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  4 месяца назад

      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 🙂

  • @homeofgame2984
    @homeofgame2984 2 месяца назад

    the code you put in flutter local notfication where did you get from the channel id and other ??

    • @HeyFlutter
      @HeyFlutter  2 месяца назад

      Thank You @homeofgame2984!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

  • @1ManStartup
    @1ManStartup 10 месяцев назад

    in handleMessage is it possible to use go_router for the redirect? Maybe not, but how would this work without using `navigatorKey`?

    • @HeyFlutter
      @HeyFlutter  10 месяцев назад +1

      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 10 месяцев назад

      @@HeyFlutter Thanks I'll take a look, great video!

    • @Masterslandnn
      @Masterslandnn 8 месяцев назад

      @@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

  • @junovicz
    @junovicz 8 месяцев назад

    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 8 месяцев назад

      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  8 месяцев назад

      Thank You @junovicz! Follow this link: stackoverflow.com/questions/73798602/ask-notifications-permission-in-flutter
      I hope you will get your answer 🙂

  • @ZaferAst
    @ZaferAst 9 месяцев назад +2

    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 9 месяцев назад +1

      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  9 месяцев назад +1

      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 9 месяцев назад

      Thanks 🙂 @@HeyFlutter

    • @ZaferAst
      @ZaferAst 9 месяцев назад

      Thank you for the answer @anozGosai
      Our message argument is the same.
      final message = ModalRoute.of(context)!.settings. Arguments;

    • @shalinijain6210
      @shalinijain6210 5 месяцев назад +1

      @@anozGosai I m getting the same issue , did you find any solution for the same?

  • @raulbenelli5454
    @raulbenelli5454 2 месяца назад +1

    Hello from the future, nice video, but now the structure of gradle files is different, any suggestion? thanks

    • @HeyFlutter
      @HeyFlutter  2 месяца назад

      Thank you, @raulbenelli5454! 🙂. Please try to provide enough details with your question.

    • @raulbenelli5454
      @raulbenelli5454 2 месяца назад

      @@HeyFlutterThanks, but I was decided to try with firebase CLI and it work. thanks

  • @souheil9227
    @souheil9227 9 месяцев назад +1

    You are definitely Tunisian!

  • @learnwithme20
    @learnwithme20 8 месяцев назад

    if i made it then all the devices if i make it in a state will get the notification?

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад

      Thank you, @learnwithme20! 🙂. Try to provide enough details with your question.

  • @flutterdiary
    @flutterdiary 10 месяцев назад

    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  10 месяцев назад

      Thanks for the idea, @flutterfix1340! 🙂 I have added it to my list of ideas for future videos!

    • @ijasinijeremiah5509
      @ijasinijeremiah5509 6 месяцев назад

      hey@@HeyFlutter do you have a video on this yet?

  • @shuaibalghazali3405
    @shuaibalghazali3405 29 дней назад

    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  27 дней назад +1

      Thank You @shuaibalghazali3405! Follow this link: stackoverflow.com/questions/70339106/how-to-detect-incoming-message-in-flutter
      I hope you will get your answer 🙂

  • @nicolassangregorio606
    @nicolassangregorio606 2 месяца назад

    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  2 месяца назад +1

      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 2 месяца назад

      @@HeyFlutterthanks !

  • @rihabjenzeri2981
    @rihabjenzeri2981 Месяц назад

    انت تونسة ، متأكدة أن أنت تونسية ، رغم أن تحكي بالإنجليزية ، بنت بلادي الغاليا ، ربي إوفقك

    • @HeyFlutter
      @HeyFlutter  Месяц назад

      Thank you, @rihabjenzeri2981! 🙂

  • @farzane_gharib
    @farzane_gharib 6 месяцев назад

    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  6 месяцев назад

      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 6 месяцев назад

      Thank you for your response. I have raised my issue here. I hope a solution will be found.@@HeyFlutter

  • @MohanRaj-nt7ru
    @MohanRaj-nt7ru 11 месяцев назад +1

    I did all things as you did. Not receiving Notification when app is killed. Need help here

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      Thank you, @MohanRaj-nt7ru! 🙂. Try to provide enough details with your question whenever you face any issue.

  • @MuhammadFaisal-ey5fr
    @MuhammadFaisal-ey5fr 9 месяцев назад +1

    IOSInitializationSettings() isnt defined.
    Is it because of differences of the library version?
    Can you tell us what the changes are?

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад +1

      Thank you, @MuhammadFaisal-ey5fr! 🙂. Kindly read the official docs.

    • @MuhammadFaisal-ey5fr
      @MuhammadFaisal-ey5fr 9 месяцев назад +1

      @@HeyFlutter Okay, thanks for the kind reply!
      Hey one more thing, do you have tutorial for iOS push notification too??

    • @juancueva4815
      @juancueva4815 9 месяцев назад

      @@MuhammadFaisal-ey5fr use "DarwinInitializationSettings" instead

  • @corepuncher
    @corepuncher 2 месяца назад

    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 2 месяца назад

      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.

  • @iremerdogan8140
    @iremerdogan8140 17 дней назад

    Min. Can't I set the SDK version to 19? Is it right to keep it as it is default?

    • @HeyFlutter
      @HeyFlutter  13 дней назад

      Thank you, @iremerdogan8140! 🙂. Yes, in some cases you need to change it.

  • @emirhan2070
    @emirhan2070 10 дней назад

    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  10 дней назад

      Hey @emirhan2070 😀 this behavior is not allowed by respective platforms

  • @nsgroupsoftware3222
    @nsgroupsoftware3222 11 месяцев назад

    hello.perfect video.. but when app terminated i can receive notification and then push the nottification then not opening notificattion_screen.

    • @ScroatyDontKnow
      @ScroatyDontKnow 6 месяцев назад

      I have the same issue. Did you manage to get this working?

  • @user-qn4us9ex5h
    @user-qn4us9ex5h 10 месяцев назад

    hellow,Thak for this video,can you make video about dynamic links connect with firebase ,if you make i really
    thank you

    • @HeyFlutter
      @HeyFlutter  10 месяцев назад

      Thanks for the idea, @user-qn4us9ex5h! 🙂 I have added it to my list of ideas for future videos!

  • @abhishekbhujel4158
    @abhishekbhujel4158 3 месяца назад

    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  3 месяца назад

      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 🙂

  • @tedlavender494
    @tedlavender494 6 месяцев назад

    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  6 месяцев назад

      Thank you, @tedlavender494! 🙂. May be there is slight changes. You can see the official docs.

  • @MuhammadFaisal-ey5fr
    @MuhammadFaisal-ey5fr 8 месяцев назад

    Hey, how about adding image in the Push Notification itself?

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад +1

      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 8 месяцев назад

      @@HeyFlutter Thanks!

  • @maazking9087
    @maazking9087 9 месяцев назад

    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  9 месяцев назад +1

      Thank You @maazking9087! Follow this link: medium.com/@yshean/implementing-push-notifications-in-flutter-apps-aef98451e8f1
      I hope you will get your answer 🙂

  • @mahbubpasha6176
    @mahbubpasha6176 4 месяца назад

    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  4 месяца назад +1

      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 4 месяца назад

      @@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?

  • @abhishekbhujel4158
    @abhishekbhujel4158 3 месяца назад

    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  3 месяца назад

      Thanks for the idea, @abhishekbhujel4158! 🙂 I have added it to my list of ideas for future videos!

  • @pankajsir9474
    @pankajsir9474 Год назад +1

    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 ❤❤❤

  • @ShubhamSingh-rl4zu
    @ShubhamSingh-rl4zu 9 месяцев назад

    Thanku

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад

      You are welcome, @ShubhamSingh-rl4zu!

  • @vibenep
    @vibenep 5 месяцев назад

    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  4 месяца назад

      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 🙂

  • @anandhar9329
    @anandhar9329 3 месяца назад

    How to make the notification popup on the screen like other application. It's only shown in the status bar.

    • @HeyFlutter
      @HeyFlutter  3 месяца назад

      Thank you, @anandhar9329! 🙂. Please try to provide enough details with your question

    • @anandhar9329
      @anandhar9329 3 месяца назад

      @@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 3 месяца назад

      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.

  • @jontysingh4334
    @jontysingh4334 5 месяцев назад

    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  5 месяцев назад

      Thanks for the idea @jontysingh4334 😀, i have added it in my list of future videos

  • @anuragkashyap5011
    @anuragkashyap5011 Год назад

    How to send notification to every user whenever I click on button and not by using test campaign in firebase

    • @ugochukwuumerie6378
      @ugochukwuumerie6378 Год назад +1

      You will need to integrate firebase admin to send messages without firebase console message campaign

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      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 🙂

  • @benjaminsmith9943
    @benjaminsmith9943 3 месяца назад

    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  3 месяца назад

      Thank you, @benjaminsmith9943! 🙂. Please try to provide enough details with your question

    • @benjaminsmith9943
      @benjaminsmith9943 3 месяца назад

      @@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?

  • @saratm9973
    @saratm9973 4 месяца назад

    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  3 месяца назад

      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 🙂

  • @eytan2592
    @eytan2592 11 месяцев назад

    how i can send a notification to a specific user ?

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      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 🙂

  • @sanctum_gaming
    @sanctum_gaming 11 месяцев назад

    i get an error
    iam trying add message output in text widget, but notification? got red line. help me

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      Thank you, @sanctum_gaming! 🙂. Try to provide enough details with your question whenever you face any issue.

  • @anozGosai
    @anozGosai 9 месяцев назад

    I am getting this error.
    The getter 'notification' isn't defined for the type 'Object'.

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад

      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 🙂

  • @nguyenquinn6856
    @nguyenquinn6856 6 месяцев назад

    Do you have instructions for iOS?

    • @HeyFlutter
      @HeyFlutter  6 месяцев назад +1

      Thanks for the idea, @nguyenquinn6856! 🙂 I have added it to my list of ideas for future videos!

  • @oussamasbisiane4544
    @oussamasbisiane4544 26 дней назад

    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  24 дня назад +1

      Thanks for the idea @oussamasbisiane4544 😀, i have added it in my list of future videos

    • @oussamasbisiane4544
      @oussamasbisiane4544 24 дня назад

      @@HeyFlutter i can provide u the code if u want i solve the problem

  • @praveenpushkin5604
    @praveenpushkin5604 5 месяцев назад

    Actually it can be make a simple way, you made it very complecated

    • @HeyFlutter
      @HeyFlutter  5 месяцев назад

      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.

  • @ulemukawelama431
    @ulemukawelama431 8 месяцев назад

    This great and helpful tutorial, however you should have also shown us how to send a notification to multiple devices at once.

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад

      Thanks for the idea, @ulemukawelama431! 🙂 I have added it to my list of ideas for future videos!

  • @mohammadjavadbahiraei6478
    @mohammadjavadbahiraei6478 6 месяцев назад

    please help me to config flutter web push notification. its not working on flutter web

    • @HeyFlutter
      @HeyFlutter  6 месяцев назад

      Thank You @mohammadjavadbahiraei6478! Follow this link: stackoverflow.com/questions/60929746/how-to-implement-flutter-web-push-notification
      I hope you will get your answer 🙂

  • @thecoolerparthdeshpande
    @thecoolerparthdeshpande 11 месяцев назад +1

    The named parameter 'onSelectNotification' isn't defined. error

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад +1

      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 11 месяцев назад +2

      @@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 9 месяцев назад

      @@diprajroy8552 were you able to fix this?

  • @Ahmed-ui5wn
    @Ahmed-ui5wn 14 дней назад

    Great video, but iOS implementation is missing...

    • @HeyFlutter
      @HeyFlutter  13 дней назад

      Thanks for your feedback, @Ahmed-ui5wn! 🙂

  • @user-el8gf3ly4g
    @user-el8gf3ly4g 6 месяцев назад

    how to show profile image like whatsapp notification in this package ?

    • @HeyFlutter
      @HeyFlutter  6 месяцев назад

      Thank You @user-el8gf3ly4g! Follow this link: stackoverflow.com/questions/72615141/flutter-notifications-display-whatsapp-like-notification
      I hope you will get your answer 🙂

  • @vishalmethri7073
    @vishalmethri7073 7 месяцев назад

    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  7 месяцев назад

      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 6 месяцев назад

      Were you able to solve this? I'm at the same issue

    • @shalinijain6210
      @shalinijain6210 5 месяцев назад

      @@ScroatyDontKnow did you find the soluation? I am also stuck at the same point.

    • @ScroatyDontKnow
      @ScroatyDontKnow 5 месяцев назад

      @@shalinijain6210 nope. I just ignored it and moved on unfortunately

  • @karthi9474
    @karthi9474 Месяц назад

    i cannt get your source after fill the email and git username

    • @HeyFlutter
      @HeyFlutter  Месяц назад

      Thank You @karthi9474!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

  • @nandaydas8670
    @nandaydas8670 11 месяцев назад

    I'm getting an error: Unable to log event: analytics library is missing

    • @HeyFlutter
      @HeyFlutter  11 месяцев назад

      Thank you @nandaydas8670, make sure to follow the tutorial step by step 🙂

  • @user-mp2vg4lq9h
    @user-mp2vg4lq9h 6 месяцев назад

    why i have subscribed to ur newsletter but it doesnt give me access to the souce code. my money gone bro

    • @HeyFlutter
      @HeyFlutter  6 месяцев назад

      Thank You @user-mp2vg4lq9h!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

  • @DeveMobile
    @DeveMobile 10 месяцев назад

    why when I terminated the app, notification did not show up for me ?

    • @HeyFlutter
      @HeyFlutter  10 месяцев назад

      Thank you @DeveMobile, make sure to follow the tutorial step by step 🙂. Also please make sure than background handlers are properly initialized

    • @pascalh2469
      @pascalh2469 10 месяцев назад

      @@HeyFlutter Same for me, i followed this tutorial step by step and also tried other tutorials before, it just wont work and i dont get why :/

    • @pascalh2469
      @pascalh2469 10 месяцев назад

      Nvm, it actually works, when i follow your code examples, it just takes some time for them to come

  • @s.bamahfoodh
    @s.bamahfoodh 17 дней назад

    why did you add an Android app when You can add a Flutter app in Firebase??

    • @HeyFlutter
      @HeyFlutter  13 дней назад +1

      Thank you, @s.bamahfoodh! 🙂. Yes you can do that as well now.