-
Notifications
You must be signed in to change notification settings - Fork 84
Description
Steps to reproduce:
- Open https://tests.peter.sh/notification-generator/
- Allow to show notifications in the browser permission prompt
- Select "One action (type text)" in the "Actions" dropdown menu
- Click "Display the notification" button
- Receive the notification and click "Reply" action button
- Type something
- Click "Send" icon
Expected behavior:
The notification should close after clicking on "Send" icon
Current behavior:
If "Close it?" checkbox is unchecked, after clicking on "Send" icon it becomes a spinner that spins endlessly. The notification won't close.
If "Close it?" checkbox is checked, after clicking on "Send" icon the typed text is added at the top, you can click "Reply" action button again, type something, and click "Send" icon, this text is also added at the top. The notification won't close.
Question
How to close the notification after reply? Should I return a promise in notificationclick event listener in addition to event.notification.close() or something else?
Is it a bug in Chrome for Android? The notification successfully closes in Chrome on Windows after clicking "Reply" action button (in both cases, if "Close it?" checkbox is checked or unchecked):
@beverloo @gauntface @anitawoodruff Please help me figure it out. 😉



