stadtnavi / stadtnavi_app

The model project for networked mobility in Herrenberg
https://stadtnavi.de/
GNU General Public License v3.0
6 stars 2 forks source link

Notification can't be closed #366

Open hbruch opened 1 week ago

hbruch commented 1 week ago

Describe the bug A notification shown on startup can not be closed.

To Reproduce Steps to reproduce the behavior:

  1. Open the app
  2. See a notfication which has no x and can't be closed (only the notification's link is clickable)

Expected behavior The notification should be closable.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

GustavoTCh commented 1 week ago

@hbruch

  1. Issue Overview: The problem seems to stem from how Firebase In-App Messaging in Flutter handles notifications popups, particularly with the “Card” option. In this style, the popups don’t include a close (“X”) button by default, which can make them difficult for users to dismiss in IOS, However, on Android, the popup can be dismissed by tapping outside of it.”.

  2. Customization Limits: We cannot modify the default behavior of the “Card” option directly through the app code, Flutter-Firebase-Package does allow for some customization of in-app notification popups.

  3. Possible Solution: To resolve the issue, you can configure the notification-card via the Firebase Console by adding a secondary button. For example, labeling this button as “Close” would give users the ability to dismiss the popup. This secondary action can provide the functionality you’re looking for, even though the default behavior does not include an “X” button.

image

stadtnavimanager commented 3 days ago

@Denis306 / @GustavoTCh Please include the steps in the user manual. Then the issue can be closed.