Complete Guide Flutter Push Notifications with Firebase Cloud Messaging

Complete Guide Flutter Push Notifications with Firebase Cloud Messaging

dbestech

1 год назад

58,305 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@MohandMahmoud-jl8uo
@MohandMahmoud-jl8uo - 22.11.2023 16:21

thank you for this awesome video

Ответить
@iqramrafien9981
@iqramrafien9981 - 07.11.2023 13:05

hello sir. Do you have any tutorial how to implement push notification for flutter with bloc state management? For example chatting.

Ответить
@karlkiyotaka
@karlkiyotaka - 16.10.2023 19:45

Thank you so much bro 🔥🔥🔥🔥

Ответить
@iishiigamii
@iishiigamii - 25.08.2023 19:16

this is outdated

Ответить
@mawaisadil2505
@mawaisadil2505 - 27.07.2023 12:55

Should we store the device token in the database only once when the app is started for the first time, or should we store it every time the app is opened? The reason behind this is that I want to trigger notifications from the backend (using Laravel) using the device token.
So, what would be the best approach according to your experience? I'm developing my first app for production, and your opinion is very important to me.

Ответить
@rebel_king_yt
@rebel_king_yt - 22.07.2023 20:20

Sir I want to send notifications while my application may be closed or running but these notifications are for some specific change in data in firebase how could I do that

Ответить
@someshsahu4638
@someshsahu4638 - 17.07.2023 19:46

nice video sir thank you so much 🙏🏼🙏🏼🙏🏼, but how to send msg to multiple user please reply...

Ответить
@destinymatthew8515
@destinymatthew8515 - 12.07.2023 13:03

Please how can i navigate to a specific screen that requires a uid

Ответить
@sykoz371
@sykoz371 - 12.06.2023 19:27

Hey, I'm sending notifications to users using topics from Cloud Messaging. I want to build an in-app notifications screen, so am I going to have to store that notification data in my database to be able to show them?

Ответить
@redis6375
@redis6375 - 26.05.2023 18:43

hello, i want to ask. can we use it for scheduled notification?

Ответить
@ernestsebastian980
@ernestsebastian980 - 25.05.2023 18:02

2 Months ago i couldnt quite get what you were doing in some parts. 2 months after that, i come again. this time everything works flawlessly. I can see my progress
thanks to people like you

Ответить
@heripurwanto2351
@heripurwanto2351 - 16.04.2023 19:06

wa'alaikumussalam

Ответить
@samirok9340
@samirok9340 - 05.04.2023 09:52

Hey, Iam getting "null check operator used on null value" error while clicking on notification in terminated state (android only). everything else works fine. help would be much appreciated. Thanks.

Ответить
@Sujith116
@Sujith116 - 25.03.2023 11:44

Hy this was an excellent tutorial, and I have also seen your other videos they were awesome🤯

I have a doubt in this notifications, I saw your previous tutorials as well you only explained how to send notifications to a particular user using those tokens, but how to send notifications to all the users?

For example, I made an Event app that shows all the events, and another events admin app where I can create new events, if an event is created it should notify all the users who have the Event app.

Can you help me with this?

Ответить
@farshadsilent356
@farshadsilent356 - 20.03.2023 00:03

sir I have error {Unhandled Exception: 'package:flutter_local_notifications/src/platform_flutter_local_notifications.dart': Failed assertion: line 1018 pos 12: 'callback != null': The backgroundHandler needs to be either a static function or a top}
how can fix?

Ответить
@mcandan
@mcandan - 19.03.2023 12:11

⚠ Sending notifications directly from app is not safe. Because anyone can listen local network and see your auth token. Then change "to" field and send notification to everybody. You should handle this at backend.

Ответить
@dirojasvera
@dirojasvera - 18.03.2023 15:52

Hi, how are you ? I wanted to ask you something. I made the video and when I installed the app on two phones, the admin sends a notification to the client app using the sending mode "to": "/topics/myTopic1". The admin sends the notification but the client app does not receive the notification unless the client app also sends a notification. apart from if you receive the notifications that the admin app sends you... what could be the problem?

Ответить
@alexanderbarragan5837
@alexanderbarragan5837 - 15.03.2023 15:29

I followed your tutorial and everything worked as you showed except for one thing: In my case, the notification heads-up are not showing as yours. Instead, just a small icon app appears on the status bar and I have to expand the control section in order to see the notification. Do you know why this happens?

Ответить
@PiPe884
@PiPe884 - 10.03.2023 06:16

This video is perfecto! Thanks for everything dude

Ответить
@sametdemirtop7578
@sametdemirtop7578 - 08.03.2023 13:05

onSelectNotification was deprecated with new updates , how to add click action to my notifications , could you help me about this ?

Ответить
@vu4157
@vu4157 - 25.02.2023 19:36

i want to know, how to open a post in webview from the firebase message on flutter.
i saw , in ur tutorial , we can go to new page.
but how to open a link , in webview in the new page from the firebase notification.
i have been searching for this , for very long time.
any info is very helpful.

Ответить
@maxoluwatosin
@maxoluwatosin - 09.02.2023 13:53

This is great! Thank you so much!

Ответить
@sanaishaq7306
@sanaishaq7306 - 03.02.2023 21:15

Notifications aren't visible(in terminated and background) as popup like I get in foreground. I have to slide down the notification tray to see the notification. Pls help

Ответить
@edwardphilipguarin6460
@edwardphilipguarin6460 - 03.02.2023 13:02

Hello sir! Thank you for this tutorial I have used it. I just want to ask also, can I use this in web build?

Ответить
@mehrozhassan6051
@mehrozhassan6051 - 28.01.2023 10:22

Thank You! It really helps me a lot. JzakAllah

Ответить
@codein5
@codein5 - 24.01.2023 20:45

Hey bro, for sending push notification from the app the legacy version used server-key but now it uses Oauth2 token how can I get that any idea?

Ответить
@fatihyilmazz
@fatihyilmazz - 18.01.2023 17:26

'image' :"asdas.png"

I tried to send a picture, but the picture is not sent, do you know a way?

Ответить
@prashantmangale5033
@prashantmangale5033 - 11.01.2023 23:06

On Android 12, notification arrives on application on foreground it throws an error as "set PendingIntent flag to mutable or immutable".
Please help me to show foreground notification using flutter_local_notifications plugin.

Ответить
@emmanuelonwumah915
@emmanuelonwumah915 - 29.12.2022 01:55

Do you have github repo for this?

Ответить
@motivaet5447
@motivaet5447 - 20.12.2022 14:03

Very great content, thank you. I have a question :- How can we customize the push notification sound and how to make the notification appear like a snackbar on top when the app is on background or terminated.

Ответить
@zizou2316
@zizou2316 - 16.12.2022 23:03

بارك الله فيك اخي العزيز BAREK ELLAH FIK MY BRO

Ответить
@nikkocapiroso3712
@nikkocapiroso3712 - 14.12.2022 05:03

Hello can i ask i should initialize on every screen i have or in just the main screen?

Ответить
@matheusfigueredo7543
@matheusfigueredo7543 - 12.12.2022 00:12

Hey there. My IOS app is closing when gets a notification. Any idea why?

BTW, i only uploaded APNs authentication key to Firebase

flutter_local_notifications 12.0.4
firebase_messaging 14.1.4

Ответить
@ugochukwuumerie6378
@ugochukwuumerie6378 - 08.12.2022 18:44

Thank you so much for this. Quick one, in an authentication scenario, when is the best time to get device token, at registration time or when the user is logged in, and also, the user can login from other devices too?

Can the device token string of a particular device change when you recapture the token of that same device, so one can update the device token of that particular device?

Thanks.

Ответить
@ninehichem5037
@ninehichem5037 - 22.11.2022 22:09

thx sir for the tuto , i have question!
i have e-commerce app and i want users to get notification when there is new product is added, and also when they click on notification they went to the page and display the product info !
how can i do it !
and 3rd question , in the port methode , if i remove the "to" key will the notification be sent to all devices?

Ответить
@syedharis2771
@syedharis2771 - 21.11.2022 18:41

can i send Notification from one device to another??

Ответить
@jesussalamanca596
@jesussalamanca596 - 17.11.2022 04:49

thank you so much

Ответить
@zerocoll20
@zerocoll20 - 14.11.2022 22:51

For some reason my code is getting two instances of main, one of them "requestPermission" is returning as null.

Ответить
@devetips
@devetips - 05.11.2022 15:19

very informative tutorial thanks for sharing

Ответить
@manashejmadi
@manashejmadi - 02.11.2022 01:09

github link please. it would really help me

Ответить
@haiderjaafer8164
@haiderjaafer8164 - 29.10.2022 00:21

great work ... i have did all but notification not showing when click on button nothing happen ,,, please share code thank alot

Ответить
@jhonatanamortegui5852
@jhonatanamortegui5852 - 27.10.2022 05:45

This video was very useful, just what i need. Thank you so much, man.

Ответить
@Shon90az
@Shon90az - 26.10.2022 15:08

Thanks i really do appreciate it but for some reason im having issues with the line FlutterLocalNotificationsPlugin().initialize(initializationSettings, onSelectNotification: (String? payload) async. it says the named parameter 'onSelectNotification' isn't defined.

Ответить
@duasepuluh3419
@duasepuluh3419 - 25.10.2022 11:41

just exactly what i need, Sir. big support ❤
subs +1

Ответить
@MohamedHassan-en8rv
@MohamedHassan-en8rv - 22.10.2022 22:58

brother why i try to make notification but messaging.requestPermission is not functional and when starting i didn't get any request for permission what do u think the problem ??

Ответить