build: (deps): bump flutter_local_notifications from 19.5.0 to 20.0.0

Bumps [flutter_local_notifications](https://github.com/MaikuB/flutter_local_notifications) from 19.5.0 to 20.0.0.
- [Release notes](https://github.com/MaikuB/flutter_local_notifications/releases)
- [Commits](https://github.com/MaikuB/flutter_local_notifications/compare/flutter_local_notifications-v19.5.0...flutter_local_notifications-v20.0.0)

---
updated-dependencies:
- dependency-name: flutter_local_notifications
  dependency-version: 20.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2026-02-03 03:01:26 +00:00 committed by Christian Kußowski
commit 49003af949
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
6 changed files with 33 additions and 33 deletions

View file

@ -112,7 +112,7 @@ class BackgroundPush {
});
}
await _flutterLocalNotificationsPlugin.initialize(
const InitializationSettings(
settings: const InitializationSettings(
android: AndroidInitializationSettings('notifications_icon'),
iOS: DarwinInitializationSettings(),
),
@ -170,7 +170,7 @@ class BackgroundPush {
Future<void> cancelNotification(String roomId) async {
Logs().v('Cancel notification for room', roomId);
await _flutterLocalNotificationsPlugin.cancel(roomId.hashCode);
await _flutterLocalNotificationsPlugin.cancel(id: roomId.hashCode);
// Workaround for app icon badge not updating
if (Platform.isIOS) {

View file

@ -161,17 +161,17 @@ abstract class ClientManager {
final flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();
await flutterLocalNotificationsPlugin.initialize(
const InitializationSettings(
settings: const InitializationSettings(
android: AndroidInitializationSettings('notifications_icon'),
iOS: DarwinInitializationSettings(),
),
);
flutterLocalNotificationsPlugin.show(
0,
title,
body,
const NotificationDetails(
await flutterLocalNotificationsPlugin.show(
id: 0,
title: title,
body: body,
notificationDetails: const NotificationDetails(
android: AndroidNotificationDetails(
'error_message',
'Error Messages',

View file

@ -196,7 +196,7 @@ Future<void> notificationTap(
.timeout(const Duration(seconds: 3));
final messagingStyleInformation =
await AndroidFlutterLocalNotificationsPlugin()
.getActiveNotificationMessagingStyle(room.id.hashCode);
.getActiveNotificationMessagingStyle(id: room.id.hashCode);
if (messagingStyleInformation == null) return;
l10n ??= await lookupL10n(PlatformDispatcher.instance.locale);
messagingStyleInformation.messages?.add(
@ -214,10 +214,10 @@ Future<void> notificationTap(
);
await FlutterLocalNotificationsPlugin().show(
room.id.hashCode,
room.getLocalizedDisplayname(MatrixLocals(l10n)),
input,
NotificationDetails(
id: room.id.hashCode,
title: room.getLocalizedDisplayname(MatrixLocals(l10n)),
body: input,
notificationDetails: NotificationDetails(
android: AndroidNotificationDetails(
AppConfig.pushNotificationsChannelId,
l10n.incomingMessages,

View file

@ -41,11 +41,11 @@ Future<void> pushHelper(
Logs().e('Push Helper has crashed! Writing into temporary file', e, s);
l10n ??= await lookupL10n(PlatformDispatcher.instance.locale);
flutterLocalNotificationsPlugin.show(
notification.roomId?.hashCode ?? 0,
l10n.newMessageInFluffyChat,
l10n.openAppToReadMessages,
NotificationDetails(
await flutterLocalNotificationsPlugin.show(
id: notification.roomId?.hashCode ?? 0,
title: l10n.newMessageInFluffyChat,
body: l10n.openAppToReadMessages,
notificationDetails: NotificationDetails(
iOS: const DarwinNotificationDetails(),
android: AndroidNotificationDetails(
AppConfig.pushNotificationsChannelId,
@ -111,7 +111,7 @@ Future<void> _tryPushHelper(
(room) => room.id.hashCode == activeNotification.id,
);
if (room == null || !room.isUnreadOrInvited) {
flutterLocalNotificationsPlugin.cancel(activeNotification.id!);
flutterLocalNotificationsPlugin.cancel(id: activeNotification.id!);
}
}
}
@ -220,7 +220,7 @@ Future<void> _tryPushHelper(
final messagingStyleInformation = PlatformInfos.isAndroid
? await AndroidFlutterLocalNotificationsPlugin()
.getActiveNotificationMessagingStyle(id)
.getActiveNotificationMessagingStyle(id: id)
: null;
messagingStyleInformation?.messages?.add(newMessage);
@ -317,10 +317,10 @@ Future<void> _tryPushHelper(
}
await flutterLocalNotificationsPlugin.show(
id,
title,
body,
platformChannelSpecifics,
id: id,
title: title,
body: body,
notificationDetails: platformChannelSpecifics,
payload: FluffyChatPushPayload(
client.clientName,
event.room.id,