Questions tagged [flutter-local-notification]

270 questions
10
votes
3 answers

How to schedule multiple time specific local notifications in flutter

I am developing water drinking reminder app with Flutter. I want to schedule a list of time specified local notifications that user can add to this list and delete from this list.
kadir
  • 265
  • 1
  • 5
  • 13
7
votes
1 answer

how to implement flutter web local notification?

I'm wondering if I can implement local notification in flutter web? I saw that I can create local notification for mobile app Android or IOS but is it possible to use it for web app? or any other alternative to accomplish it?
6
votes
1 answer

Flutter_local_notifications notificationResponse.payload is always empty string,

I'm trying to setup my mobile app, so that when a user gets a FCM message, when they click on it, I can use data within the message to route them to appropriate screen. My FCM message looks like this: const fcmMessage = { …
6
votes
2 answers

Flutter schedule local notification does not work

I am trying to create a notification at a certain time but it is not working. The code does not throw any error but no notification is displayed on the device. I am using flutter_local_notifications Code that generates the notification: Future
Br0wn
  • 544
  • 3
  • 19
6
votes
0 answers

How to show popup dialog if app closed when receive notification in Flutter?

I am building a transport application using flutter and I have reached the receiving requests section of the captain application. How to show dialog if app closed when receive notification? Such as Uber app: when the captain receives a new trip…
6
votes
4 answers

Not getting payload data when app is terminated, Flutter FCM and LPN

I'm setting up push notifications via FCM and LocalPushNotifications, I was able to set it up in foreground state of app and in the background. In terminated state of the app, I do receive the notification, but when I press on it, no action happens,…
5
votes
3 answers

Navigate to screen from push notification flutter_local_notification package

I am using the flutter_local_notification package to handle notifications from a third party server (not firebase cloud messaging). Because I am using firebase but not firebase messaging, I am using the onSelectNotification function of the…
5
votes
2 answers

error: The named parameter 'onSelectNotification' isn't defined

i update flutter_local_notifications into 12.0.3 and show me this error: error: The named parameter 'onSelectNotification' isn't defined. (undefined_named_parameter at [rosen] lib\services\notification\notification_service.dart:33) and this is…
Dr iTech
  • 53
  • 1
  • 3
5
votes
3 answers

both firebase and flutter local notifications handle background notificaiton

I'm facing an issue with displaying double notifications when the app in the background firebase handle the notification first and then the flutter local notification display a popup on the screen anyway to make firebase not show the…
5
votes
2 answers

How to dismiss local notification in flutter without bring app in foreground

I am using awesome_notifications and want to dismiss as well as not bring the app in foreground when the 'Mark as read' is clicked in the notification. App correctly not bring the app in foreground , but the notification does not get…
4
votes
2 answers

Flutter - FCM message not coming when app is closed

I have used FCM along with Flutter local notification for receiving messages. Flutter local notifiation is used to show notification when app is in foreground. Currently, I am using Android 12 (Poco X3 PRO). When I terminate the application and send…
4
votes
1 answer

How to get flutter local notification on iOS using only FCM data message?

I have an app that send notifications if someone commented or published a new post. I use FCM and flutter local notification. It works well on Android, but on iOS it does not. I realized if I add a 'notification' message block to the firebase…
4
votes
0 answers

Flutter Local Notifications doesn't execute code with app terminated

I have an app that schedules alarms, which trigger flutter local notifications. When pressing one of the buttons on these notifications, the database gets updated to reflect that you've turned off the alarm. However, when the app is…
4
votes
5 answers

How to generate a Unique id, flutter

I am making a todo app with notifications and am using flutter local notifications plugin, How do I generate a unique integer as id for a specific todo so that I can also cancel notification of that specific todo using that unique integer.
Rohith Nambiar
  • 2,957
  • 4
  • 17
  • 37
4
votes
0 answers

Flutter Local Notification is not working on the real device (Android)

I am building an Android application using Flutter. My app needs to display local notification. I am using this package, https://pub.dev/packages/flutter_local_notifications. When I show the notification on the emulator it is working. But it is not…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
1
2 3
17 18