You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When receiving multiple push notifications using Firebase and displaying them only when the app is in the background (using flutter_local_notifications), all notifications are unexpectedly cleared when opening any single notification or upon returning to the app. This occurs even though each notification has a unique notificationID, and no code explicitly clears notifications from the notification center.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.3, on macOS 15.1 24B83 darwin-arm64, locale en-CO)
Integrate Firebase for push notifications and set up flutter_local_notifications to display notifications only in the background.
Send multiple push notifications with unique notificationIDs to ensure they are treated as separate notifications.
Open any one of the notifications from the notification center.
Return to the app and observe the notification center.
Expected behavior
Each notification should remain in the notification center until explicitly dismissed by the user, without automatically clearing other notifications when one is opened
Sample code to reproduce the problem
I have Firebase configured to receive push notifications and flutter_local_notifications to display them in the background. The notification center displays notifications correctly when the app is backgrounded. However, when returning to the app or tapping any notification, all notifications are cleared. No code calls clearAllNotifications or similar actions.
The text was updated successfully, but these errors were encountered:
israel-carreno-yohana
changed the title
Push Notifications Automatically Clear on App Open with Firebase and flutter_local_notifications
[flutter_local_notifications] Push Notifications Automatically Clear on App Open with Firebase and flutter_local_notifications
Nov 8, 2024
Describe the bug
When receiving multiple push notifications using Firebase and displaying them only when the app is in the background (using flutter_local_notifications), all notifications are unexpectedly cleared when opening any single notification or upon returning to the app. This occurs even though each notification has a unique notificationID, and no code explicitly clears notifications from the notification center.
To Reproduce
firebase_messaging: ^15.1.4
flutter_local_notifications: 18.0.0
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.3, on macOS 15.1 24B83 darwin-arm64, locale en-CO)
Expected behavior
Each notification should remain in the notification center until explicitly dismissed by the user, without automatically clearing other notifications when one is opened
Sample code to reproduce the problem
I have Firebase configured to receive push notifications and flutter_local_notifications to display them in the background. The notification center displays notifications correctly when the app is backgrounded. However, when returning to the app or tapping any notification, all notifications are cleared. No code calls clearAllNotifications or similar actions.
The text was updated successfully, but these errors were encountered: