The app icon's red badge number no longer seems to update on the app icon whenever I get a push notification and I'm not sure why.
Recently, I dealt with the problem of the app icon red badge not going away after push notifications are received, so I implemented the flutter_app_badger package in order to get rid of the app icon badge number after going to a specific part of the app.
But however this introduced a new problem of the app icon badge no longer appearing at all now whenever I receive push notifications.
So instead I tried another package called flutter_dynamic_icon, which has the ability to alter the badge number on the app icon as well and unfortunately the problem of the app icon badge not appearing still persists.
The idea is whenever the user goes to a certain new part of the app that the notification refers to, (or if the notification is clicked on) it gets rid of the notification badge icon on the app icon (or at least decrements it by 1).
So basically, the app icon badge could be altered when I implemented the package but now the app icon badge number no longer appears whenever I receive a push notification.
Can anyone help me understand why this may stop working all of a sudden after adding the flutter_dynamic_icon or flutter_app_badger package?
What would cause the app icon badge to no longer appear after receiving a push notification?
Some info if it helps, I'm currently using:
- flutter_dynamic_icon (I was using flutter_app_badger, then when the app icon badge no longer appeared I switched to flutter_dynamic _icon)
- Firebase cloud messaging for push notifications (though it was working before I tried using flutter_app_badger, then switched the flutter_dynamic_icon.
Thank you very much.