Smart Push Notifications with Flutter & FCM

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ก.ค. 2024
  • Send push notifications 💌 in Flutter with Firebase Cloud Messaging (FCM) to a single device, topic, or user segment. fireship.io/lessons/flutter-p...
    FCM firebase.google.com/docs/clou...
    FlutterFire Docs pub.dev/packages/firebase_mes...
    #flutter #fcm #firebase
    Don't forget to take the quiz 🤓
    iOS itunes.apple.com/us/app/fires...
    Android play.google.com/store/apps/de...
    Upgrade to Fireship PRO at fireship.io/pro
    Use code lORhwXd2 for 25% off your first payment.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 236

  • @adamn1973
    @adamn1973 4 ปีที่แล้ว +95

    Love the vids and use them but wanted to over a couple critiques: 1) It is sometimes difficult to follow where in the scope of the code you are currently editting because you have a habit of deleting code segments and then cutting that action from the video... so, for example, we don't necessarily know which class's "initState()" we are in. 2) The videos seem like you've speeded them up by default... or maybe I'm getting old. Anyway... as a possible solution to "critique #1" you could speed up segments of code editting/navigation as a video transition style instead of editting them out which is more jarring.

    • @dylanralph1447
      @dylanralph1447 2 ปีที่แล้ว

      i guess it is pretty off topic but do anybody know of a good website to watch newly released movies online?

    • @jasejesse8308
      @jasejesse8308 2 ปีที่แล้ว

      @Dylan Ralph flixportal :)

    • @dylanralph1447
      @dylanralph1447 2 ปีที่แล้ว

      @Jase Jesse Thank you, I went there and it seems like a nice service :D I really appreciate it !

    • @jasejesse8308
      @jasejesse8308 2 ปีที่แล้ว

      @Dylan Ralph Glad I could help =)

  • @jc7148
    @jc7148 5 ปีที่แล้ว +2

    Great video on FCM! You are a huge motivation to all the dev people out there.

  • @detpikachu
    @detpikachu 5 ปีที่แล้ว +15

    As a mostly backend programmer, I have to admit, your videos make me want to get more and more into front-end. Keep up the good work!

  • @adriaanduplessis7371
    @adriaanduplessis7371 4 ปีที่แล้ว

    Since I am very new to Flutter and Push Notifications, I can honestly say that this helped me implement Push Notifications in my first app. Fireship content is amazing. Thank you very much for the excellent videos.

  • @hikaiix
    @hikaiix 5 ปีที่แล้ว +1

    I'll definitely start your course on flutter. Not the first video I've watch on it and I really need to try it. Anyway, thanks for the content you offer us, always happy to receive a TH-cam notification when a new video is out!

  • @Hades5k
    @Hades5k 5 ปีที่แล้ว

    And yet another great video. Short and sweet. Thanks alot!! You're a real time saver!

  • @cakemnstr42
    @cakemnstr42 5 ปีที่แล้ว

    you got me to try flutter again, going wayy better than the first time. Keep up the great work!

  • @leafdriving
    @leafdriving 4 ปีที่แล้ว

    Thank you for explaining at the correct speed! I learn WAY faster with you!

  • @igorkuna290
    @igorkuna290 5 ปีที่แล้ว +1

    Can't wait to use this on the new app I'm building :) awesome stuff!

  • @brokenumbrellagames
    @brokenumbrellagames 5 ปีที่แล้ว +2

    Love your content! Keep on keeping on!

  • @RPSNaik
    @RPSNaik 5 ปีที่แล้ว

    Each time I watch ur videos I understand various mistakes that I am doing while creating flutter app... Thank you for everything 🙏 Namaste

  • @davidkiguta8227
    @davidkiguta8227 4 ปีที่แล้ว

    this was extra helpful, you never disappoints 😊👍

  • @GeneLimWernMin
    @GeneLimWernMin 5 ปีที่แล้ว

    Love the knowledge gained from your videos!

  • @wontonfuton
    @wontonfuton 5 ปีที่แล้ว

    Understood almost nothing because I have not still got my hands dirty with firebase in flutter but still watched it full and loved it. I don't know why everything seems so perfect about your videos.

  • @OmarAbdelaziz__47
    @OmarAbdelaziz__47 2 ปีที่แล้ว

    You saved me a lot of time knowing all I need, thank you Fireship

  • @chien-kaikevinma9588
    @chien-kaikevinma9588 4 ปีที่แล้ว

    Currently learning Flutter :) Thx for your videos.

  • @agreensh
    @agreensh 5 ปีที่แล้ว

    Nice and concise explanations. Keep up the good work!

  • @isaacrobot
    @isaacrobot 5 ปีที่แล้ว

    fireship channel is my favorite go-to on all firebase content

  • @faizkazi2789
    @faizkazi2789 5 ปีที่แล้ว

    Was looking for this. Great work bro

  • @wmfadel
    @wmfadel 5 ปีที่แล้ว +1

    Amazing content just as expected from you

  • @thelegend3720
    @thelegend3720 5 ปีที่แล้ว

    Great video! Very well explained and very concise.

  • @nicoteufel
    @nicoteufel 3 ปีที่แล้ว

    Thank you for this! I will use the same techniques now in my project.

  • @sadabwasim9850
    @sadabwasim9850 5 ปีที่แล้ว +1

    How you manage to cover that much info in such a small video, great work, keep it up.😊👍

  • @dithmal
    @dithmal 5 ปีที่แล้ว

    Thanks for the deeper insight!

  • @Fintan91
    @Fintan91 5 ปีที่แล้ว

    Looks great, can't wait to give it a go

  • @darshangowda309
    @darshangowda309 5 ปีที่แล้ว +7

    This is awesome! FCM can get confusing at times with so many types of payloads.

  • @stevewlasichuk
    @stevewlasichuk 5 ปีที่แล้ว

    Yay was looking into getting started with FCM

  • @tenj
    @tenj ปีที่แล้ว

    When I struggle with something and find a video on your channel for it, my mental health increases.

  • @austin_bean
    @austin_bean 5 ปีที่แล้ว

    Looks awesome!

  • @makemypetgamedevprocess6475
    @makemypetgamedevprocess6475 3 ปีที่แล้ว

    Awesome tutorial Fireship, keep it up💪

  • @AbhinavSrivastava11
    @AbhinavSrivastava11 5 ปีที่แล้ว

    This is really awesome 🔥🔥🔥

  • @olamarche
    @olamarche 5 ปีที่แล้ว

    Oh yeah! Right in time for my app!

  • @asankaiddamalgoda5503
    @asankaiddamalgoda5503 5 ปีที่แล้ว

    This is the best one out of the lot for FCM

  • @amitverma14ster
    @amitverma14ster 4 ปีที่แล้ว +7

    Thanks for nice tutorial. I was wondering how you can show the snackbar when the user is active on some other screen.

  • @jeromestsauver
    @jeromestsauver 5 ปีที่แล้ว

    love this channel

  • @hakimhassani97
    @hakimhassani97 5 ปีที่แล้ว +4

    that's what i needed for this week's task x)

  • @ahmedm.elsayed6649
    @ahmedm.elsayed6649 4 ปีที่แล้ว

    realy realy helping me u just saved my day thanks very much

  • @JinalKothariS
    @JinalKothariS 4 ปีที่แล้ว

    Thanks man 🙏🏼

  • @arielcohen2280
    @arielcohen2280 3 ปีที่แล้ว

    thank you a great chanel !!

  • @virtualmindwave
    @virtualmindwave 5 ปีที่แล้ว +27

    Fireship always amazes me with quality content! Keep it up!

  • @oiojin831
    @oiojin831 5 ปีที่แล้ว

    Finally :)
    Thanks

  • @Tiesthatbindus
    @Tiesthatbindus 4 ปีที่แล้ว

    Outstanding! This goes hand-in-hand with the notifications that I'm doing now. One update though: It sounds like the auth key is the preferred way to handle notifications for iOS rather than the certificate. Any idea if the certs are going to be depreciated soon? Thanks Jeff!

  • @akashbansal6216
    @akashbansal6216 4 ปีที่แล้ว

    great great great everything is working very well

  • @alexedwards7679
    @alexedwards7679 5 ปีที่แล้ว +8

    Always watching to fund out what I didn't think of myself 😂

  • @clipslive1156
    @clipslive1156 5 ปีที่แล้ว +1

    sweet fireship T-shirt bro

  • @cos_marc
    @cos_marc 3 ปีที่แล้ว +1

    Awesome content as always! The only missing part is how do you manage the tokens when a user uninstalls your app. Would be cool if anyone can reply on this topic 😊

  • @MahbuburRahman-uc7np
    @MahbuburRahman-uc7np 2 ปีที่แล้ว

    ZERO Dislike. Just shows the quality of this video.

    • @satyam3762
      @satyam3762 2 ปีที่แล้ว

      Dude, TH-cam don't show dislikes anymore 😂😂

  • @kannanhassouna8789
    @kannanhassouna8789 5 ปีที่แล้ว

    thank you
    fabulous tut

  • @baadrqaaba9529
    @baadrqaaba9529 5 ปีที่แล้ว

    thats what i needed

  • @azheennazhad2205
    @azheennazhad2205 4 ปีที่แล้ว

    hello! thankyou so much for this tutorial ! i have a question tho please, what if your app doesnt require authentication?

  • @vipinvijayan6034
    @vipinvijayan6034 4 ปีที่แล้ว

    Great Video.

  • @mawulijo
    @mawulijo 5 ปีที่แล้ว +7

    We are sync Jeff, we are in sync. My number 1 stop shop for serious real app solutions.

  • @romulosandrirodrigues5200
    @romulosandrirodrigues5200 4 ปีที่แล้ว

    Hi. Great tutorial as always. I have a question: how to get the current user UID from the firebase Auth plugin into this function?

  • @SamuelCamargo1000
    @SamuelCamargo1000 5 ปีที่แล้ว

    Keep up the good job

  • @mattl7599
    @mattl7599 5 ปีที่แล้ว

    Another great video. Can you please tell me what colour scheme you are using for the code inside Visual Studio?

  • @zebcode
    @zebcode 3 ปีที่แล้ว

    Hours of searching as to why the background notifications don't work... then I check out this video and find out in less than 5 minutes...
    I'm already a pro member... why did I not come here first?! Thank you for the awesome video!

  • @Rotem_shwartz
    @Rotem_shwartz 5 ปีที่แล้ว +1

    great job jeff, love you mate :)

  • @xtraszone
    @xtraszone 3 ปีที่แล้ว

    I have created these packages:
    1. super_easy_in_app_purchase
    2. super_easy_permissions
    These will make your life a lot easier :-)

  • @dumisanizikhali1724
    @dumisanizikhali1724 4 ปีที่แล้ว

    Excellent

  • @whoman0385
    @whoman0385 ปีที่แล้ว +1

    Great video! just one problem, cloud functions are only for the blaze plan now..

  • @siri3359
    @siri3359 3 ปีที่แล้ว +1

    Hey thank you for this great video. Can you please slow down a bit or create a series of the fcm flutter videos that could help me follow along :) Thank you :)

  • @Zentamusic
    @Zentamusic 4 ปีที่แล้ว

    Nice tutorial! Did you know it is actually possible to send messages from the app directly via curl (no need for a backend script).

  • @billubaziger
    @billubaziger 5 ปีที่แล้ว +1

    As a junior dev, i just watch your videos for intros

    • @otheraw5659
      @otheraw5659 5 ปีที่แล้ว

      yeah me too, it might a little bit too fast but that's what I love from this channel. It gives me a fast overview on How to, so I can follow it up easier.

  • @vadimosovsky
    @vadimosovsky 5 ปีที่แล้ว

    More Flutter please!

  • @akrurranjanborah8164
    @akrurranjanborah8164 5 ปีที่แล้ว

    thanks from India

  • @yogenp
    @yogenp 5 ปีที่แล้ว +3

    Jeff, you'd outdone yourself. I thought 'Ok, perhaps he is only going to cover the FCM through console part. But, most of my FCM done through cloud functions?!'. Then, boom. Love this thorough and comprehensive content. Love the longer video. Hoping your video is getting monetized for your efforts. I do hope to sign up for Fireship lifetime membership one day.

  • @ful1e5
    @ful1e5 5 ปีที่แล้ว


    I am waiting for this video

  • @arturbegyan5207
    @arturbegyan5207 4 ปีที่แล้ว +1

    Want the T-shirt, amazing tutorials btw

  • @zaka7024
    @zaka7024 5 ปีที่แล้ว

    You are great

  • @betterbebachelor
    @betterbebachelor 3 ปีที่แล้ว

    hi bro .. very thankful for the content you provide ... every thing is working fine but am not getting sound when i run on a device .. the notification is available in the notification pannel but not giving any sound or not showing when locked... when i enable permissions manually going to setting then its getting sound and showing banner when notification arrived... is there way to enable permissions by asking user.... plz answer my question

  • @mohammedowaisaa6185
    @mohammedowaisaa6185 5 ปีที่แล้ว

    I've been trying to implement FCM, but some mobiles from brands like Vivo, Oppo which have custom OS, doesn't show the notification or anything! Any ideas what we could do to turn around?

  • @sunnysinha9728
    @sunnysinha9728 4 ปีที่แล้ว

    very well explained as usual... how can we do some background operations when fcm is sent and app is not running...
    like some sql query stuff on all of the devices... and this query will be sent to all devices through fcm.,please help me with it... i am not able to do so using onBackgroundMesaage

  • @saabsebadakhiladi3795
    @saabsebadakhiladi3795 4 ปีที่แล้ว

    Hey, please can you do a tutorial on this Flutter "package scrolling_day_calendar", I am not sure how to implement it and I am new to flutter

  • @morpheuz2006
    @morpheuz2006 5 ปีที่แล้ว

    Nice tutórial

  • @snehmehta
    @snehmehta 4 ปีที่แล้ว

    Best !

  • @FunOrFacts
    @FunOrFacts 3 ปีที่แล้ว

    does this work kotlin based flutter project or its useful only for java based flutter projects

  • @zerolive4146
    @zerolive4146 5 ปีที่แล้ว

    Can you tell me how can I implement python algorithm on flutter app? Thought your expertise can be helpful.

  • @iamyogik
    @iamyogik 5 ปีที่แล้ว +2

    Hola. I am Korean but I did not recieve your notification 😂. Btw great video.

  • @christianwheeler8441
    @christianwheeler8441 5 ปีที่แล้ว

    Epic Fireship Shirt > Add To Cart. Payment Method > Witty Comment.

  • @DiazGunturFebrian
    @DiazGunturFebrian 4 ปีที่แล้ว

    What do you think if using device group rather than send to array of tokens? so we only need to send to device group notification key once to notify all of the user devices

  • @emericgnonhoue7029
    @emericgnonhoue7029 5 ปีที่แล้ว

    Awesome

  • @mail4frenz
    @mail4frenz 5 ปีที่แล้ว

    good content

  • @thekakan
    @thekakan 5 ปีที่แล้ว

    Can we use something else, like MQTT for example? I think FCM has its roots with Play Services and is the most efficient way for notifications....
    I can't help but wonder. If I have a suite of apps, maybe I can make a separate app that acts as MQTT client and receives notifications that way?

  • @Jo-tb6ur
    @Jo-tb6ur 4 ปีที่แล้ว

    Just ti be clear, does it mean that my users have to sign in before I can send out notifications. What if my app doesn't have sign up system but just wants to send out notifications, would this still work out?

  • @VigneshKM
    @VigneshKM 5 ปีที่แล้ว

    Please make a tutorial on iOS push notification? I tried integrating onesignal push notification. It was working fine on Android not on iOS. Can you do an tutorial on iOS push notification? That will help a lot.

  • @LifeCasts
    @LifeCasts 5 ปีที่แล้ว

    Can you make a tutorial for background services and location fetching in background

  • @randlekehinde4987
    @randlekehinde4987 5 ปีที่แล้ว

    Right on time

  • @jajasaria
    @jajasaria 5 ปีที่แล้ว

    Im using mysql db for website and mobile app (thru api endpoint). Do you think is it okay to add firebase to my mobile app for the live messaging and push notif? Overall my mobile application will have two connection. Is it okay? Need some guidance on this approach. Btw nice video. keep it up

  • @mjharris8214
    @mjharris8214 5 ปีที่แล้ว

    Can you make a video on deploying multi tenancy apps and how to select data based on username?

  • @nullified__
    @nullified__ 3 ปีที่แล้ว

    Can you do this with real time database instead of cloud firestore (if you can please make a video for it)

  • @kickhuggy
    @kickhuggy 2 ปีที่แล้ว

    Wow a lot of praise here and I’m completely struggling to follow this vid

  • @julianfigueroatorres1801
    @julianfigueroatorres1801 5 ปีที่แล้ว

    great video Jeff, I'm wondering, is really necessary to have the Apple Developer license to work around with GC Notifications. Regards.

    • @peekpt
      @peekpt 5 ปีที่แล้ว

      If you need to push anything you need a certificate an enrolment with external push service like FCM for that you need a dev certificate

  • @RaadYacu
    @RaadYacu 5 ปีที่แล้ว

    So whats the diff with FCM notifications and sms? I guess it depends on the use case

  • @murtazavohra360
    @murtazavohra360 3 ปีที่แล้ว +1

    what happens if the user uninstalls the app will he/she still receive notifications and also if the user logins from multiple devices all devices won't get notifications by this method.

  • @PurusothamanRamanujam
    @PurusothamanRamanujam 5 ปีที่แล้ว

    When both notification and data(custom data), I see that nothing happens.. no notifications at all. but when i remove custom data segment from the payload, I get the push notification. what could be the reason? Thanks in advance.

  • @mairatariq6739
    @mairatariq6739 2 ปีที่แล้ว

    Hi, can it be done on Spark plan? without signing up for Blaze plan?

  • @WhatIsThisAllAbout
    @WhatIsThisAllAbout 4 ปีที่แล้ว

    this will work even when app is in the background, right?

  • @aikbusmeon2524
    @aikbusmeon2524 2 ปีที่แล้ว

    Hello sir! Hope you're well. Is it possible to target the notification based on the log event parameters? Example. I wanna target those people who click this event with defined parameters.

  • @NitishKumarSingh
    @NitishKumarSingh 5 ปีที่แล้ว

    One year ago, I also did a video about *Flutter Firebase Messaging Tutorial* video.

    • @Fireship
      @Fireship  5 ปีที่แล้ว

      Nice, I'll check that out

  • @jemmytech5474
    @jemmytech5474 3 ปีที่แล้ว

    Sir i want to be notified on someone’s birthday , added to sqlite database listview, sir which package will suit my problem? Local notification or FCM?