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
Describe the bug
There was a ticket for this already here: #553 but it was closed without been fixed.
When you get a new notification on Android, you get it both to the notification center and also the icon gets a badge with a number.
It is expected that when you tap on either the notification or the icon itself, to get the notification's data. You currently don't get anything when tapping on the icon, only when tapping on the notification.
Furthermore, the notification is not cleared when tapping on the icon.
That piece itself can be solved by changing the MainActivity class to add this on onCreate :
This clears the notification, but now you lost the notification data forever.
Additional context
Besides the main issue, it would also be nice to be able to clear notifications within Flutter, and not having to mess with native Android code.
Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel dev, 1.24.0-1.0.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.50.1)
[✓] Connected device (6 available)
Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Bug report
Describe the bug
There was a ticket for this already here: #553 but it was closed without been fixed.
When you get a new notification on Android, you get it both to the notification center and also the icon gets a badge with a number.
It is expected that when you tap on either the notification or the icon itself, to get the notification's data. You currently don't get anything when tapping on the icon, only when tapping on the notification.
Furthermore, the notification is not cleared when tapping on the icon.
That piece itself can be solved by changing the
MainActivity
class to add this ononCreate
:This clears the notification, but now you lost the notification data forever.
Additional context
Besides the main issue, it would also be nice to be able to clear notifications within Flutter, and not having to mess with native Android code.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: