Questions tagged [flutter-local-notification]
270 questions
2
votes
1 answer
How can I delete a notification channel using flutter local notification?
I'm using flutter local notification plugin and I want the user to be able to customize the notification sound and vibration but the plugin's docs says:
For Android 8.0+, sounds and vibrations are associated with
notification channels and can only…

Ramez Sleem
- 53
- 1
- 6
2
votes
1 answer
The argument type 'Future Function(String)' can't be assigned to the parameter type 'void Function(String?)?'
I am using flutter local notification but it doesn't work and it suddenly makes my app shuts down. Here's my code.
initializeNotifications() async {
var initializationSettingsAndroid =
…

Lost Soul
- 61
- 5
2
votes
0 answers
Even using annotate @pragma('vm:entry-point') code does not work in release mode
I got an issue in the release mode APK. I am implementing some code in the serviceMain function. It works fine in debug mode, but when I am building apk as release mode. The code is not working.
What I am trying to do is, I'm implementing a function…

Thakkar Darshan
- 350
- 1
- 15
2
votes
1 answer
Flutter local notification sound works in most devices except Samsung A50 Android 11
I want to show Push notifications when the user open my flutter app . Notifications appear in most devices and have sound and appear like popup in Samsung and Realme but in my device Samsung A50, notifications appear but without sound and don't…

Ahmed Elsayed
- 231
- 3
- 23
2
votes
2 answers
How to wait for a Flutter app to open before navigating to a particular page by clicking a scheduled notification?
I'm working on a Flutter project where I had to set a scheduled local notification that would fire everyday at 10 am. And, the user should be taken to a certain page of the app upon clicking the notification.
I've completed this part and the…

Aurangzeb Hossain
- 51
- 1
- 4
2
votes
3 answers
Flutter Local Notifications show notification every 72 hours
I am trying to send out notifications every 72 hours. I am using the flutter_local_notifications package. I know I can periodically show notifications but as far as I can see it is limited to these options:
/// The available intervals for…

Chris
- 1,828
- 6
- 40
- 108
2
votes
0 answers
How to setup onDidReceiveLocalNotification
For iOS setup of flutter_local_notifications, it need to add the onDidReceiveLocalNotification for IOSInitializationSettings, but the example code is not out of box, how to fix it correctly?
void onDidReceiveLocalNotification(
int id, String…

ccd
- 5,788
- 10
- 46
- 96
2
votes
0 answers
Flutter locale notification in spesific date and time
I'm trying to add local schedule notification to my app but it's not working. My app has datetime picker so I'm trying to send notification spesific date and time. How can I do that? My codes are below. Thanks in advance for your…

Berke Ay
- 73
- 5
2
votes
5 answers
Flutter Local Notification Sound not working
The notification sound using Flutter Local Notification for Android not working at all
here is the code
const NotificationDetails(
android: AndroidNotificationDetails(
'daily notification channel id',
'daily…

Ammar Mohamed
- 513
- 1
- 6
- 16
2
votes
0 answers
Flutter Local Notifications onSelectNotification Navigator not working if the app is already opened
I use a Navigator in onSelectNotification in Flutter Local Notifications, if the app is already running when I set the notification the Navigator works fine, if the app is closed and opened it via the notification it works fine too because I use…

Ammar Mohamed
- 513
- 1
- 6
- 16
2
votes
2 answers
How to add local image to flutter_local_notifications
I am trying to create push notifications and would like to add an image to the notification. I am able to add images from the web as shown in the screenshot below.
How can I add a local image instead? I tried adding the file path as shown below,…

marcorivera8
- 217
- 1
- 5
- 13
2
votes
1 answer
what is matchDateTimeComponents object in flutter local notification?
i am using flutter local notification library.
what is the difference between:
matchDateTimeComponents: DateTimeComponents.dayOfWeekAndTime
and
matchDateTimeComponents: DateTimeComponents.time
user13408251
2
votes
0 answers
Avoid custom icon in flutter_local_notifications
I have set up flutter_local_notifications to provide reminders in my app. However, I am getting stuck with specifying the app icon for android. For normal notifications the colour of the notification icon reacts to the colour of the background on…

Neill Bowler
- 145
- 1
- 10
2
votes
0 answers
Sound and pop-up notifications do not work in flutter
I am using local_notifications plugin in my android flutter app. I do everything according to the documentation and the notifications work but without sound and pop-up windows. Importance and priority set to max. Maybe the reason is in some settings…

Kek909
- 21
- 3
2
votes
2 answers
Flutter: Notification Navigation from Background Task without context issue
My App does the following: It runs a background Task using Flutter Workmanager which checks some values and then it throws a Notification via Flutter Local Notification. In the initialize method from FlutterLocalNotifications Plugin, i can specify a…

Nyancat92
- 41
- 4