From 30047209e3ce9cf48bfc8db74b18e9c24833948a Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Tue, 17 Sep 2024 14:20:14 -0700 Subject: [PATCH] make notifications silent --- lib/entities/background_tasks.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/entities/background_tasks.dart b/lib/entities/background_tasks.dart index 8bada4ed9..10839ff10 100644 --- a/lib/entities/background_tasks.dart +++ b/lib/entities/background_tasks.dart @@ -49,6 +49,7 @@ void setMainNotification( notificationChannelName, icon: 'ic_bg_service_small', ongoing: true, + silent: true, ), ), ); @@ -84,6 +85,7 @@ void setSpNodeWarningNotification( "${notificationChannelName}_$walletNum", icon: 'ic_bg_service_small', ongoing: false, + silent: true, ), ), ); @@ -201,7 +203,7 @@ Future onStart(ServiceInstance service) async { spSupported = false; continue; } - + await wallet.connectToNode(node: node); syncingWallets.add(wallet); } catch (e) { @@ -243,6 +245,7 @@ Future onStart(ServiceInstance service) async { "${notificationChannelName}_$i", icon: 'ic_bg_service_small', ongoing: true, + silent: true, ), ), ); @@ -278,7 +281,7 @@ Future initializeService(FlutterBackgroundService bgService, bool useNotif "${notificationChannelId}_$i", "${notificationChannelName}_$i", description: notificationChannelDescription, - importance: Importance.low, + importance: Importance.min, ); await flutterLocalNotificationsPlugin .resolvePlatformSpecificImplementation()