👽 Update the notify due to the API changes

This commit is contained in:
2026-02-02 02:54:41 +08:00
parent c9c362d3d1
commit 8a9de6f43f

View File

@@ -55,7 +55,7 @@ Future<void> initializeLocalNotifications() async {
);
await flutterLocalNotificationsPlugin.initialize(
initializationSettings,
settings: initializationSettings,
onDidReceiveNotificationResponse: (NotificationResponse response) async {
final payload = response.payload;
if (payload != null) {
@@ -125,10 +125,10 @@ StreamSubscription<WebSocketPacket> 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 {