improved reliability and error handling for background notification actions by migrating to a top-level entry point for stable AOT callback resolution; implemented failure notifications to preserve undelivered reply text and surface technical errors; resolved a race condition that could resurrect dismissed notifications during silent re-renders; updated the Android manifest with the required broadcast receiver for notification actions; and refactored internal OCS methods to return detailed success/failure records for improved logging and field debugging.

This commit is contained in:
2026-07-05 23:43:58 +02:00
parent 483fea62ba
commit dab208877f
5 changed files with 214 additions and 37 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ class NotificationService {
await flutterLocalNotificationsPlugin.initialize(
settings: initializationSettings,
onDidReceiveNotificationResponse: PushTapRouter.handleResponse,
onDidReceiveBackgroundNotificationResponse:
PushActions.handleBackgroundResponse,
// Top-level function, NOT the static method: AOT callback resolution
// has failed for static class members (see pushActionBackgroundHandler).
onDidReceiveBackgroundNotificationResponse: pushActionBackgroundHandler,
);
}
}