From 8a9de6f43fab08a9897e87716551270c3b68cdc8 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 2 Feb 2026 02:54:41 +0800 Subject: [PATCH] :alien: Update the notify due to the API changes --- lib/services/notify.universal.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/services/notify.universal.dart b/lib/services/notify.universal.dart index 14359d71..c1086637 100644 --- a/lib/services/notify.universal.dart +++ b/lib/services/notify.universal.dart @@ -55,7 +55,7 @@ Future initializeLocalNotifications() async { ); await flutterLocalNotificationsPlugin.initialize( - initializationSettings, + settings: initializationSettings, onDidReceiveNotificationResponse: (NotificationResponse response) async { final payload = response.payload; if (payload != null) { @@ -125,10 +125,10 @@ StreamSubscription setupNotificationListener( android: androidNotificationDetails, ); await flutterLocalNotificationsPlugin.show( - 0, - notification.title, - notification.content, - notificationDetails, + id: 0, + title: notification.title, + body: notification.content, + notificationDetails: notificationDetails, payload: notification.meta['action_uri'] as String?, ); } else {