Flutter Firebase Push Notifications Tutorial | 2024

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

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

  • @YashHarode17
    @YashHarode17 7 месяцев назад +2

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

  • @KryAndre
    @KryAndre 7 месяцев назад +2

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

  • @olegnovosad
    @olegnovosad 6 месяцев назад +2

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

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

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

  • @ZeeshanAli-rz6zp
    @ZeeshanAli-rz6zp 6 месяцев назад

    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

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

      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.

  • @Strawberry-oz1qu
    @Strawberry-oz1qu 4 месяца назад

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

      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.

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

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

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

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

  • @HuyGiang-w1k
    @HuyGiang-w1k Месяц назад

    When the app is in background, can I use another notification package instead of the default one? Please help me!!

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

      Unfortunately this is not possible , if you are using firebase_messaging package, then it will use the default one for showing notification in background and terminated state. I have tried to use flutter_local_notifications package for background , but it is showing 2 notifications at once one for flutter_local_notifications and one for firebase_messaging default .

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

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

      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.

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

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

      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.

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

    How to send notifications from the backend sir ?, please make a tutorial

    • @gonzalobruna7154
      @gonzalobruna7154 18 дней назад

      Kind of difficult, but you have to downlaod a json with the credentials of your firebase admin. Then you have to install the firebase-admin SDK for your server, mine was made with nodejs so I installed the firebase-admin SDK for nodejs. Then you have to use the .json file with your credentials to initialize your app and then you can start sending notifications using the SDK

    • @AbibahAlfiansyah
      @AbibahAlfiansyah 12 дней назад

      @@gonzalobruna7154 do you have a tutorial?

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

    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

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

    Thank's for class teacher

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

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

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

      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,
      );

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

    Thanks a lot it worked

  • @easy_english_123
    @easy_english_123 28 дней назад

    23:17 android manifest
    33:34 show when locked

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

    complicated but thank you

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

    How to send notification admin to user?

  • @AbdulBasit-wv7gc
    @AbdulBasit-wv7gc 4 месяца назад

    how can we send notification from one device to another

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

      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.

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

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

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

      I am glad you have replied and thank you