mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-19 01:04:43 +00:00
make notifications silent
This commit is contained in:
parent
4f9d602ee4
commit
30047209e3
1 changed files with 5 additions and 2 deletions
|
@ -49,6 +49,7 @@ void setMainNotification(
|
||||||
notificationChannelName,
|
notificationChannelName,
|
||||||
icon: 'ic_bg_service_small',
|
icon: 'ic_bg_service_small',
|
||||||
ongoing: true,
|
ongoing: true,
|
||||||
|
silent: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -84,6 +85,7 @@ void setSpNodeWarningNotification(
|
||||||
"${notificationChannelName}_$walletNum",
|
"${notificationChannelName}_$walletNum",
|
||||||
icon: 'ic_bg_service_small',
|
icon: 'ic_bg_service_small',
|
||||||
ongoing: false,
|
ongoing: false,
|
||||||
|
silent: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -201,7 +203,7 @@ Future<void> onStart(ServiceInstance service) async {
|
||||||
spSupported = false;
|
spSupported = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
await wallet.connectToNode(node: node);
|
await wallet.connectToNode(node: node);
|
||||||
syncingWallets.add(wallet);
|
syncingWallets.add(wallet);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -243,6 +245,7 @@ Future<void> onStart(ServiceInstance service) async {
|
||||||
"${notificationChannelName}_$i",
|
"${notificationChannelName}_$i",
|
||||||
icon: 'ic_bg_service_small',
|
icon: 'ic_bg_service_small',
|
||||||
ongoing: true,
|
ongoing: true,
|
||||||
|
silent: true,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -278,7 +281,7 @@ Future<void> initializeService(FlutterBackgroundService bgService, bool useNotif
|
||||||
"${notificationChannelId}_$i",
|
"${notificationChannelId}_$i",
|
||||||
"${notificationChannelName}_$i",
|
"${notificationChannelName}_$i",
|
||||||
description: notificationChannelDescription,
|
description: notificationChannelDescription,
|
||||||
importance: Importance.low,
|
importance: Importance.min,
|
||||||
);
|
);
|
||||||
await flutterLocalNotificationsPlugin
|
await flutterLocalNotificationsPlugin
|
||||||
.resolvePlatformSpecificImplementation<AndroidFlutterLocalNotificationsPlugin>()
|
.resolvePlatformSpecificImplementation<AndroidFlutterLocalNotificationsPlugin>()
|
||||||
|
|
Loading…
Reference in a new issue