Questions tagged [flutter-local-notification]

270 questions
1
vote
2 answers

How to do firebase push notification with redirect with payload data in flutter.?

Here is my code below :- var typeId = message!=null?message.data["payload"]:payload; if(typeId["type"]=="XYZ"){ //Navigate to a screen }else{} this is not working and throwing exception.
1
vote
1 answer

Handle terminated state using flutter local notifications & FCM

I'm created a handler for incoming FCM using flutter local notifications & on tap on each notification it can navigate to a specific screen and that working properly as soon as the app in the foreground and background but when the app terminated it…
1
vote
1 answer

Flutter FCM / Local notifications: how to access the full original message?

Tried accessing the full message in onDidReceiveNotification but no candy. None of the properties in notificationResponse contain the original full message. /// Sets up Local Notifications and its Listeners Future
1
vote
0 answers

How to show app custom icon in flutter_local_notification in flutter?

I am trying to send local notification in android using flutter_local_notifications and it's working nicely. But the problem is I can not show the app custom icon in notification bar. So, could anyone please help me sharing a solution. Thanks in…
1
vote
0 answers

Flutter Awesome notifications not showing in background or when app is terminated

Good day. I am using Awesome notifications in a food ordering app to notify users when their food is ready. Notifications come through when the app is open, but not when the app is in the background/terminated. Once I re-open the app, all the…
1
vote
0 answers

Problem while scheduling local notification in flutter

When I schedule local notification on my phone(android version - 7) the app is crashed and when I schedule same for android version - 8 or above it works perfectly In flutter minSdkVersion 21 compileSdkVersion 33 targetSdkVersion…
Jay Patel
  • 31
  • 5
1
vote
1 answer

Error: No named parameter with the name 'onSelectNotification'

class HelperNotification { static Future initialize(FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin) async { var androidInitialize = new AndroidInitializationSettings('notification_icon'); var iOSInitialize = new…
1
vote
0 answers

Is it possible to trigger an audible alarm when certain conditions are met after the app has completely closed?

I want to receive an alarm that sounds when certain conditions are met during reception with the api even if the app is completely terminated using flutter_local_notification and workmanager in flutter .but, the trigger does not occur when the api…
1
vote
0 answers

crash with local notification flutter -> message_codecs.dart StandardMethodCodec.decodeEnvelope

Hello I add local notification on my app, but I have some crash on firebase crashlytics. Here is my code and error @override void initState() { // TODO: implement initState super.initState(); check_notification(); …
Nitneuq
  • 3,866
  • 13
  • 41
  • 64
1
vote
0 answers

Combine periodically and zoneschedule in flutter local notification,

I am trying to use a local notification flutter and try to combine periodicallyshow and zonescheduled, Can anyone give a link or example reference? Thank you PERIODICALLYSHOW CODE void scheduleNotification(String title, String body) async { …
1
vote
1 answer

How to handle tapping local notification when app is terminated in Flutter?

I am using flutter_local_notifications plugin to show notifications in Flutter and here is the initialization code: Future initializePlatformNotifications() async { const AndroidInitializationSettings initializationSettingsAndroid =…
Simple Code
  • 2,354
  • 2
  • 27
  • 56
1
vote
1 answer

zoneSchedule not work correctly when the date is very far away

I receive notifications before the date I set when the date is scheduled for several months. Anyone knows who to solve this isue ? Here is My code : scheduleNotification( DateTime date, String title, String description, int id) async { var…
1
vote
1 answer

Flutte local notification at a specific time daily for android

android only I tried NotificationServices Scheduled method with _flutterLocalNotificationsPlugin.periodicallyShow and it doesn't seems to work. also how to test it in a android emulator (changing the date and time on the device works or…
iamrishan
  • 94
  • 6
1
vote
1 answer

How to implement unread notifications indicator in a flutter app

How can I implement this indicator in flutter such that my unread notifications count are indicated on top of my app when it is closed just like it is indicated in the snapschat screenshot on IOS? I will be avaiting contributions. Thanks.
1
vote
1 answer

Flutter isolate not working in release mode on Android?

I have an app, which uses flutter isolate to show local notifications. This seems to work perfectly in debug mode and even in release mode pushed via "flutter run --release --verbose" with attached real device. However, when released to Play Store,…