Skip to content

How to close notification after reply? #48

@FluorescentHallucinogen

Description

Steps to reproduce:

  1. Open https://tests.peter.sh/notification-generator/
  2. Allow to show notifications in the browser permission prompt
  3. Select "One action (type text)" in the "Actions" dropdown menu
  4. Click "Display the notification" button
  5. Receive the notification and click "Reply" action button
  6. Type something
  7. Click "Send" icon

notification-inline-reply-android-1

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.

notification-inline-reply-android-2

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.

notification-inline-reply-android-3

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):

notification-inline-reply-windows

@beverloo @gauntface @anitawoodruff Please help me figure it out. 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions