Flutter Firebase Push Notifications Tutorial | 2024

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • 🚀 Flutter Firebase Push Notifications Tutorial: Engage Your Users with Real-Time AlertsDive deep into the world of real-time notifications with our comprehensive Flutter tutorial. Whether you're looking to inform users of new content, remind them of important tasks, or keep them engaged with timely updates, mastering push notifications with Firebase is essential. Follow along as we break down each step, from setting up your project to saving FCM tokens in Firestore.
    ⏳ Timestamps:
    Create new project 00:01:03
    Building a Basic UI 00:02:21
    Adding firebase authentication 00:08:28
    Creating function for firebase auth 00:11:16
    Set up for email password auth 00:16:29
    Setup for receiving notifications 00:22:13
    Background Notifications 00:32:01
    Foreground Notifications 00:37:34
    Terminated State notifications 00:42:40
    Save FCM token to firestore 00:44:59
    By the end of this tutorial, you'll not only have a solid understanding of Firebase Push Notifications in Flutter but also the skills to implement them in any app, enhancing user engagement and the overall app experience.
    💻 Who Should Watch? :
    This tutorial is perfect for Flutter developers of all levels looking to leverage the power of real-time notifications in their apps. Whether you're a beginner eager to explore Firebase capabilities or an experienced developer aiming to enhance your app's notification system, you'll find valuable insights and techniques to take your skills to the next level.
    👩‍💻 Source Code :
    github.com/Sne...
    🎓Join our discord community:
    / discord
    Don't forget to like, subscribe, and hit the notification bell to stay updated with more tutorials that empower your development journey. Let's build something amazing together!
    #Flutter #flutterfirebase #fluttertutorial #PushNotifications #FirebaseIntegration #MobileAppDevelopment #CodingTutorial

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

  • @olegnovosad
    @olegnovosad 4 หลายเดือนก่อน +2

    How do you handle iOS terminated state? In terminated state it is not possible to call any app code without opening app first.

  • @abdullahsheraz7461
    @abdullahsheraz7461 หลายเดือนก่อน +1

    Hey Brother, very helpful tutorial for me. I want to know one thing and I will be very thankful if you answer. i want to know that how you have got the display of Redmi Note 8 emulator. I am finding a solution to run emulator other than Pixel which are available by default in Andorid Studio.

    • @Snehasis4321
      @Snehasis4321  หลายเดือนก่อน

      That is a real device not and emulator I was just screencasting from it, you need to enable usb debugging on your phone then you can run and test on actual device.

  • @KryAndre
    @KryAndre 5 หลายเดือนก่อน +2

    You saved me, Ty, its working here, finally i can send a push notification to my costumers

  • @yashharode5700
    @yashharode5700 5 หลายเดือนก่อน +2

    Best video. Notification and firebase authentication both covered within an hour. ❤

  • @ahmedrazzaqyahya7758
    @ahmedrazzaqyahya7758 4 หลายเดือนก่อน

    Welcome.. i want send notifications by backend api ‏‪..such as backend laravel

  • @0000z2
    @0000z2 4 หลายเดือนก่อน

    Its helpful sir tq,create tutorial on sending push notification using flutter fcm http v1 api......coz its deprecated no one yet posted a detailed video on this

  • @ZeeshanAli-rz6zp
    @ZeeshanAli-rz6zp 4 หลายเดือนก่อน

    Hi, nice tutorial.
    But i need your help bcz im facing an issue that is like, in terminated state, when i click on a notification, it navigates me to a specific screen which is working perfectly, but im calling some REST Apis on the splash screen and when Apis calling done my App takes me back to the home screen but i was already navigation to specific screen when i click on notification popup.
    Any idea how i can solve the issue. THANKS IN ADVANCE

  • @MTSightseeing
    @MTSightseeing 5 หลายเดือนก่อน

    Please try to implement from scratch we need configuration part of firebase in flutter where to add dependency etc please guide

  • @adelashour3253
    @adelashour3253 2 หลายเดือนก่อน

    complicated but thank you

  • @goysid
    @goysid 3 หลายเดือนก่อน

    How to send notification admin to user?

  • @Sarfrozkhan
    @Sarfrozkhan 3 หลายเดือนก่อน

    Hi ! i am basically a php developer recently started to learn android. I have one issue . My push notification work well when app is foreground but no notification comes when my app is either killed or run in background. How can i fix this ??

    • @Snehasis4321
      @Snehasis4321  3 หลายเดือนก่อน

      May be you have skipped some step in background and terminated state process, try to figure that out. Cause if it is working in foreground then it means you have no problem with firebase setup, problem may be in code for background or terminated state.

  • @Strawberry-oz1qu
    @Strawberry-oz1qu 2 หลายเดือนก่อน

    Buddy amazing tutorial. How to send notification on any device, because if someone installs my applications, how will I send it to him without registering his token to on FCM? Basically I want to send a notification to anyone who installs the app.

    • @Snehasis4321
      @Snehasis4321  2 หลายเดือนก่อน

      For that use local notifications, create a function in your app that will send a notification to the user automatically without needing fcm tokens. You need to call that function and it will show a notification you can add a delay if you want.

  • @Kellspell
    @Kellspell 4 หลายเดือนก่อน

    Thank you a lot brother you save me hours today, much appreciated

  • @prabinbhattarai2058
    @prabinbhattarai2058 หลายเดือนก่อน

    How notification did not pop out in background and terminated state as like active state ?

    • @Snehasis4321
      @Snehasis4321  หลายเดือนก่อน

      if the _firebaseMessaging.requestPermission is set to this then it will show the pop otherwise it may not show.
      await _firebaseMessaging.requestPermission(
      alert: true,
      announcement: true,
      badge: true,
      carPlay: false,
      criticalAlert: true,
      provisional: false,
      sound: true,
      );

  • @hhaa4744
    @hhaa4744 4 หลายเดือนก่อน

    Hello brother, I would like to send the message through a specific event in the realtime database instead of sending it manually using publish. How can I link between FCM and realtime database?

    • @Snehasis4321
      @Snehasis4321  4 หลายเดือนก่อน

      For that you need to use cloud functions, or you can use a backend server, that will listen to realtime database changes and trigger notifications.

  • @mbz5734
    @mbz5734 3 หลายเดือนก่อน

    Thank's for class teacher

  • @AbdulBasit-wv7gc
    @AbdulBasit-wv7gc 2 หลายเดือนก่อน

    how can we send notification from one device to another

    • @Snehasis4321
      @Snehasis4321  2 หลายเดือนก่อน

      You need a backend that, use firebase admin package on backend to send notification, call that backend endpoint from your phone to send notification to other device.

  • @shuaibalghazali3405
    @shuaibalghazali3405 4 หลายเดือนก่อน

    Thanks a lot it worked

  • @mohammedanees8561
    @mohammedanees8561 5 หลายเดือนก่อน

    how do you customize the title and body in the notification in background

    • @Snehasis4321
      @Snehasis4321  5 หลายเดือนก่อน +2

      Actually the code for showing background notification is written in either java or kotlin we cannot modify it directly from flutter, but we can call the function to show background notification.
      If we really need to modify it then we need to override it by creating a new class of FirebaseMessagingService in java or kotlin to customize the notifications as we like, but the steps will be difficult and knowledge of java or kotlin is required.

    • @mohammedanees8561
      @mohammedanees8561 5 หลายเดือนก่อน

      I am glad you have replied and thank you