Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter non-removable notifications

I wonder if there's a way to make a fixed notificatior or a non-removable notification using Flutter. I already seen "flutter_local_notifications" but I can't find a way to make something like this: notification example

Thanks in advance!

like image 690
Bruno Antonieto Avatar asked Aug 25 '26 02:08

Bruno Antonieto


1 Answers

To make notification non-removable ... just make ongoing: true in flutter_local_notifications package

AndroidNotificationDetails androidDetails = new AndroidNotificationDetails("channelId",
    notificationModel.title, notificationModel.body,
    ongoing: true);
like image 110
Ahmed Elbadawy Avatar answered Aug 27 '26 17:08

Ahmed Elbadawy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!