Merge pull request #2527 from krille-chan/dependabot/pub/flutter_local_notifications-20.0.0

build: (deps): bump flutter_local_notifications from 19.5.0 to 20.0.0
This commit is contained in:
Krille-chan 2026-02-07 18:09:47 +01:00 committed by GitHub
commit eccf291856
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 33 additions and 33 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -503,34 +503,34 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: flutter_local_notifications name: flutter_local_notifications
sha256: "19ffb0a8bb7407875555e5e98d7343a633bb73707bae6c6a5f37c90014077875" sha256: "76cd20bcfa72fabe50ea27eeaf165527f446f55d3033021462084b87805b4cac"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "19.5.0" version: "20.0.0"
flutter_local_notifications_linux: flutter_local_notifications_linux:
dependency: transitive dependency: transitive
description: description:
name: flutter_local_notifications_linux name: flutter_local_notifications_linux
sha256: e3c277b2daab8e36ac5a6820536668d07e83851aeeb79c446e525a70710770a5 sha256: dce0116868cedd2cdf768af0365fc37ff1cbef7c02c4f51d0587482e625868d0
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "6.0.0" version: "7.0.0"
flutter_local_notifications_platform_interface: flutter_local_notifications_platform_interface:
dependency: transitive dependency: transitive
description: description:
name: flutter_local_notifications_platform_interface name: flutter_local_notifications_platform_interface
sha256: "277d25d960c15674ce78ca97f57d0bae2ee401c844b6ac80fcd972a9c99d09fe" sha256: "23de31678a48c084169d7ae95866df9de5c9d2a44be3e5915a2ff067aeeba899"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "9.1.0" version: "10.0.0"
flutter_local_notifications_windows: flutter_local_notifications_windows:
dependency: transitive dependency: transitive
description: description:
name: flutter_local_notifications_windows name: flutter_local_notifications_windows
sha256: "8d658f0d367c48bd420e7cf2d26655e2d1130147bca1eea917e576ca76668aaf" sha256: "7ddd964fa85b6a23e96956c5b63ef55cdb9e5947b71b95712204db42ad46da61"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.0.3" version: "2.0.0"
flutter_localizations: flutter_localizations:
dependency: "direct main" dependency: "direct main"
description: flutter description: flutter

View file

@ -31,7 +31,7 @@ dependencies:
sdk: flutter sdk: flutter
flutter_foreground_task: ^9.2.0 flutter_foreground_task: ^9.2.0
flutter_linkify: ^6.0.0 flutter_linkify: ^6.0.0
flutter_local_notifications: ^19.5.0 flutter_local_notifications: ^20.0.0
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
flutter_map: ^8.2.2 flutter_map: ^8.2.2