329 questions
1
vote
1
answer
78
views
Flutter Local Notifications: Custom notification icon works in debug but fails in release (invalid_icon error)
I'm using the flutter_local_notifications package. I want to set a custom notification icon.
To specify the icon, I use:
const AndroidInitializationSettings androidInit = ...
2
votes
1
answer
70
views
How to get ios active notification payload in flutter?
I am expecting that when I call get .payload from activeNotifications[0] on ios would return payload field in apns from fcm server.
apns: {
// This field
payload: {
aps: {
alert: {
...
1
vote
1
answer
120
views
Why do scheduled notifications arrive on the same day?
I'm trying to schedule a notification for several days in advance, including today, but all scheduled notifications are coming today.
This is my code:
import 'package:flutter_local_notifications/...
0
votes
0
answers
102
views
How to create a persistent notification in Flutter
Currently, I'm work on a feature that pushes a persistent notification which shows downloading and sync to local database from Api.
The notification can't be delete or swipe to be deleted. This is how ...
0
votes
1
answer
137
views
How do you handle scheduling 100s or more of notifications when Android limits you to ~50 pending?
I'm working on a Flutter app that needs to schedule a large number of notifications (think calendar app with hundreds of events, medication reminders, etc.), but I've hit Android's limit of ...
0
votes
0
answers
72
views
How to show foreground notification in flutter (iOS)
I've setup my flutter notification using the flutter_local_notification plugin, I want to show the notification even in the foreground. For simplicity I created a test to show the notification when a ...
0
votes
1
answer
76
views
duplicate notification when app is on background in flutter
i am making a app where i receive the notification on back ground and also when app is killed , i am using firebase messaging and flutter local notification i want to make the notification persistent ...
0
votes
1
answer
89
views
Notification logo not showing in expanded view in android
I'm using the flutter_local_notifications package to show foreground notifications on Android. On most devices, the notification icon (logo) appears correctly both in collapsed and expanded views. ...
1
vote
0
answers
37
views
Show push notification in opened state in the tray, as soon as it receives , flutter+firebase
In my flutter app, I have used firebase to integrate push notification along with local notifications.
What I want it - As soon as a push occurs on phone, it will show in opened state(icon, title &...
3
votes
0
answers
513
views
How to show local notification in Flutter when the app is killed or terminated?
I'm developing a Flutter app that uses alarms and local notifications. I want to show a notification at a specific time, even if the app is killed or removed from recent apps.
Currently, I'm using the ...
0
votes
0
answers
155
views
Flutter scheduled notifications not working on Android 15 (Permissions added)
I'm working on implementing scheduled local notifications in my Flutter app using the flutter_local_notifications package. I'm testing it on a real device running Android 15, and although I’ve added ...
1
vote
0
answers
57
views
Flutter Scheduled Notifications Not Working with flutter_local_notifications Plugin
I'm encountering an issue with scheduled notifications in my Flutter application using the flutter_local_notifications package. While immediate notifications function correctly, scheduled ...
0
votes
0
answers
115
views
Unable to build Flutter project due to "Execution failed for task ':app:checkDebugAarMetadata'."
I am currently experiencing this issue which causes me unable to build my Flutter project.
Execution failed for task ':app:checkDebugAarMetadata'.
A failure occurred while executing com.android.build....
0
votes
1
answer
86
views
How to schedule flutter local notification to repeat every day starting from tomorrow?
I'm trying to set up flutter notification that appear initially tomorrow, and then repeat daily after that using https://pub.dev/packages/flutter_local_notifications. This is my current approach:
// ...
1
vote
2
answers
228
views
Flutter Scheduled Notifications not working
I am building an app and want to send reminders about the tasks the user has to complete. For that I am using flutter_local_notifications: 18.0.1. The variables that I use in this class are below:
...
0
votes
0
answers
43
views
How to allow users to swipe away an alarm notification to stop the alarm in flutter?
I am working on a flutter alarm app where I want users to be able to swipe away the alarm notification to stop the alarm. Currently, I have implemented an onStop function that stops the alarm when the ...
0
votes
0
answers
35
views
How to skip one recurring notification with flutter local notifications?
I'm using Flutter Local Notifications to send a reminder to users every day at a time of their choice. My schedule function in my notification service looks like this:
Future<void> ...
1
vote
1
answer
656
views
Flutter can not run
I did a git clone of a new flutter project to be put in. I downloaded the new flutter sdk and android studio, and java got version 17.
However, when I run the cloned file locally, the following error ...
0
votes
0
answers
37
views
How to add an image to title via flutter_local_notifications
I'm facing a problem adding an image to the username in my app's notifications. I honestly tried to figure it out, but couldn’t find any information. I would be very grateful for your help.
enter ...
1
vote
1
answer
215
views
Signed apk crashes in Android 12L
When I was checking my pre-launch reports, I noticed that my app crashes on an Android 12L device. The crash does not occur in debug or release modes on my own device, but it does happen when I ...
1
vote
0
answers
90
views
Why does changing the channel ID and channel name in flutter_local_notifications affect whether the notification message is displayed?
I am using the example from flutter_local_notifications version v18.0.1:
https://github.com/MaikuB/flutter_local_notifications/tree/flutter_local_notifications-v18.0.1/flutter_local_notifications/...
1
vote
0
answers
42
views
Schedule conditional periodic notifications in Flutter (Dart)
In my Flutter (Dart) app, I want to periodically schedule a notification only if a certain condition is met.
Can it be done?
"Every morning - check if rain is expected today, and if so - trigger ...
0
votes
1
answer
1k
views
How to enable core library desugaring to be enabled for flutter_local_notifications for new declarative Plugin DSL syntax,
I coudn't find any information how ca I do that, I've tried to use the config from package but doesn't wordk. Any idea how can I do that? Please see my files:
My settings.gradle:
...
plugins {
id ...
1
vote
2
answers
553
views
Notification sound not working in Flutter release APK, but works in debug mode
I’m facing an issue with notifications in my Flutter app. I’m using the flutter_local_notifications package to schedule local notifications and play a custom sound with the notification. The sound ...
1
vote
0
answers
45
views
Custom Sound for notifications is not playing
I am using FlutterLocalNotificationsPlugin to display local notifications with a custom sound in my Flutter app. The sound file (notification.mp3) is placed in the android/app/src/main/res/raw ...
1
vote
1
answer
108
views
How can I get a navigatorkey in Flutter App? not null
When I click on the notification on background, it doesn't redirect to the page I want.
I checked, and navigatorkey.currentContext is null.
(I'm using go_router, get_it, provider)
I referred to the ...
0
votes
1
answer
148
views
Notifications not showing when app is in the background (ios, flutter_local_notifications)
I am using the flutter_local_notifications to show notifications. On iphone the notifications is not displayed when the app is in the background. But when I open the app again, the notifications get ...
1
vote
0
answers
49
views
Displaying a notification every x hour in flutter
Im trying to show a text every x hours in android notification. I asked ChatGpt as my only source to write it but it seems it is missing something i can't quite figure out.
this is what i've done so ...
0
votes
0
answers
46
views
Flutter Local Notification action Button loading issue
When received it show reply button by tapping on it, it shows the textfield and a button after inputing data and press the button it send the message button the button keeps on loading infinitely and ...
0
votes
0
answers
53
views
FCM message not shown when app is closed in release mode
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.
When I terminate the application and ...
0
votes
1
answer
393
views
Firebase notification duplicated on ios when in foreground
Notification duplicate on ios when in foreground, but if i set the foreground alert to false i dont receive any notification at all but i get in the console log
await FirebaseMessaging.instance....
1
vote
1
answer
377
views
Flutter Firebase notification is not redirecting to relevant screen
I have a flutter app and the I use Firebase and flutter_local_notifications.
Currently, my app receives notifications and when I click them, it opens up the app. However it is not redirecting to the ...
0
votes
1
answer
117
views
Handling local notifications actions on the background
I'm creating an app that plays some audio files with positive affirmations, and I have a feature on my app to get a notification to remind users to play an affirmation daily.
I'm able to create the ...
0
votes
1
answer
128
views
How to schedule and stop local notifications on a specific date in Flutter using flutter_local_notifications?
I'm trying to schedule daily local notifications in my Flutter app. The notifications should start on October 10, 2024 (It's today date), and automatically stop on November 15, 2024.
I want the ...
2
votes
3
answers
1k
views
Flutter local notification not working in background in release mode
I have implemented fcm and added flutter local notification with action button for getting incoming call notification and it works on debug mode perfectly but it is not working in release mode. I have ...
-1
votes
1
answer
339
views
Error when running permission_handler on iOS Device in flutter
I am using permission_handler to request permission for local notifications in a flutter app. However when I run the app on an iOS device it crashes.
I added permission_handler: ^11.3.1 in pubspec....
1
vote
2
answers
96
views
How do I set my hour and minute from a variable inside TZDateTime?:Flutter
I schedule user notifications. It works well, but I want to add the hour and minute that come from the user only I have two variables, the hour and the minute, but I do not know where to put the ...
0
votes
1
answer
82
views
I Want to navigate to widget after notification tapped when app is closed (flutter_local_notifications package)
I used flutter_local_notifications package and i want to navigate to widget after notification tapped when app is closed.
This is my source code :
import 'dart:async';
import 'dart:js';
import '...
1
vote
2
answers
514
views
flutter_local_notifications does not work with the custom notification icon only for the Android release build; I must be missing something
I have integrated flutter_local_notifications with my app and it was working great with the iOS and Android during the development. However, I noticed that the Android app that was released doesn't ...
0
votes
1
answer
64
views
The argument type 'Future<dynamic>? Function(String?)' can't be assigned to the parameter type 'DidReceiveNotificationResponseCallback?'
there's an error while trying to update onSelectNotification to onDidReceiveNotificationResponse
flutterLocalNotificationsPlugin.initialize(initSettings,
onDidReceiveNotificationResponse: ...
1
vote
0
answers
114
views
Flutter. Android. Open app from notification on lock screen
On the native app, I have set android:showWhenLocked=“true” in AndroidManifest. This allows me to show full screen intent on the lock screen. At the same time, tapping another notification on the lock ...
0
votes
1
answer
73
views
What is the correct place to put the notifications implemented when the application closes:Flutter
I have notifications that work very well scheduled, but the problem is that if I want a notification, I have to press a button to receive notifications. I want the notifications to come without ...
1
vote
0
answers
37
views
Notification sound is stops when pulled down the notification bar
I set a custom sound for Flutter local notifications. It works fine, but when the notification bar is pulled down, the sound stops. I want the sound to continue even when the notification bar is ...
0
votes
1
answer
218
views
Even after making backgroundHandler a top level function still throwing an error as needs to be either a static function or a top level function
I tried both as making firebaseMessagingBackgroundHandler to a top level function and then tried with making it as static. In both the cases it throws the same error as it needs to be either a ...
0
votes
1
answer
155
views
Flutter: Is there a way to make a persistant notification which can not be dismissed?
I am developing a mobile app with flutter which needs to show a notification that can not be dismissed. So as soon as the notification is displayed it can not be swiped away. The only possiblity to ...
1
vote
1
answer
2k
views
Duplicate Notification is coming for flutter local notification when the app is in background mode. How to solve?
I have a dashboard screen where in the initState I am initializing the Firebase notification and local notification. When the app is foregrounded it's getting the local notification and getting the ...
0
votes
0
answers
54
views
Flutter Local Notification not seen on phone screen
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:timezone/timezone.dart' as tz;
class LocalNotifications {
static final FlutterLocalNotificationsPlugin ...
0
votes
1
answer
322
views
Scheduled notifications, sometimes, don't show up in Android (Flutter)
I am implementing reminders where I schedule notifications using zonedSchedule method of flutter_local_notifications package. The problem is that the notifications don't show up sometimes.
What do you ...
3
votes
2
answers
1k
views
Swift Compiler Error (Xcode): Cannot find 'FlutterLocalNotificationsPlugin' in scope
Flutter Developers,
I run to this trouble, when i want to run my Flutter project on the IOS (Iphone) Simulator:
Xcode build done. 12.7s
Failed to build iOS ...
0
votes
0
answers
85
views
Flutter repeatative schedule local notification
I am trying to implement the local notification in flutter where user set the notification coming days like coming in sunday, monday and tuesday , and then user set the time range like between 4-5pm ...