Questions tagged [flutter-local-notification]

270 questions
2
votes
1 answer

How to create infinite id's in flutter_local_notification?

As id is required while triggering the notification in flutter_local_notification package how can I make infinite no of IDs as I am making an alarm app and the number of alarms added depends on the user so how do I make ids in that case?
2
votes
2 answers

How to cast Future to Future in Flutter while using flutter_local_notifications?

I was working with flutter_local_notifications plugin in flutter and while initializing it I got this error. The argument type 'Future Function(int, String, String, String)' can't be assigned to the parameter type 'Future
Himanshu Ranjan
  • 282
  • 1
  • 7
  • 22
2
votes
0 answers

Unhandled Exception: MissingPluginException(No implementation found for method show on channel dexterous.com/flutter/local_notifications)

I'm facing the issue with Flutter2 and local notifications plugin. When the app is in foreground - local notification work perfectly, but when the app is in the background - I get the error of MissingPluginException: E/flutter (18894):…
WorieN
  • 1,276
  • 1
  • 11
  • 30
2
votes
0 answers

Flutter show local notifications at exact time using workmanager

I want to set the local notification in flutter (android app), I got to know about workmanager package but I don't know how to use it for my purpose. I want to send notifications at the exact time which is selected by the user. Time…
2
votes
1 answer

Any way to make flutter local notification persist a sound being played in android unless the notification is tapped?

I looked up in the net, it was suggested to set the additionalFlags option of AndroidNotificationDetails to have a value of 4. This is what I did AndroidNotificationDetails( 'notif', 'notif', 'Notification', icon:…
godwa_rao
  • 187
  • 1
  • 10
1
vote
2 answers

To disable notification sound on button click in flutter

I need to disable the notification sounds on a button click. I have used the [flutter_local_notification][1] package. What I did that the boolean value from the button click has been stored in the local DB. When a push notification comes, it will…
1
vote
0 answers

How to add browser Notifications in Flutter with Riverpod and flutter_local_notifications?

I'm working on a Flutter Web application which utilizes a Pomodoro timer. My current task is to implement browser notifications to alert the user when a timer (Pomodoro, Short Break, or Long Break) reaches zero. The user should be able to toggle…
caroch
  • 105
  • 5
1
vote
0 answers

How to push notifications in the background (even when the app is closed), when a boolean flag in firebase database is set to true in flutter?

I want to push a notification in both foreground and background in a flutter app when a bool flag is set to true. I gone through the example given in flutter_background_service package but I can't unserstand where to write the code to check the flag…
1
vote
1 answer

LateInitializationError Field '_instance...' has not been initialized with flutter local notification package

I am new to flutter and right now I'm trying to implement local notification on android on button click (With the local notification package). I tried multiple tutorials with different approaches but I end up always getting the same…
1
vote
1 answer

Local Notifications 2023. How to set periodically notifications?

I'm working in an app and I need to implement local notification based on user input. This means that the user will select when the app shows the notification. I found the method repeatInterval, but it only offers fixed time intervals such…
1
vote
0 answers

iOS Local Notification not using Default App Logo in Flutter

please What could be the reason for my Local notification icon on iOS to still display the default Flutter icon, even after updating my app logo, i have done flutter clean, deleted the pod files, and did pod install, uninstalled the app on my…
1
vote
1 answer

flutter local notification does not send notifications

FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin(); // initialization of flutter local notifications plugin var initializationSettingsAndroid = …
1
vote
0 answers

Performing FirebaseFirestore queries from multiple Isolates

The outline of what I am trying to achieve is the following: Within the main Flutter app, the user authenticates with FirebaseAuth and afterwards can perform FirebaseFirestore read/writes. The app can launch a notification via…
1
vote
1 answer

How can I add button in Flutter local notification in flutter

I have Flutter app and I'm using a flutter local notification. I need to add a "snooze" button and functionality to redirect to the home screen to select the user's expected time. Or is there any other way to know the snooze button in users device
1
vote
1 answer

Flutter audioplayers 3.0.1 and flutter_local_notifications: ^13.0.0 help needed with new syntax

Hello i have made a flutter project and seems like pubspec packs are getting updated with new syntax every second with zero documentation of the replacements. i have some code, im basickly trying to create an alarm clock where on a notification i…