New issue
Advanced search Search tips

Issue 730392 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 2017
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Ability to dismiss notification via push message

Reported by chem...@gmail.com, Jun 7 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. Use FCM to show a notification
2. Use FCM to send a push message that dismisses that notification (because the user has dismissed it on another device or the notification is no longer relevant to the user)

What is the expected behavior?
I should be able to dismiss a notification I created via push messaging

What went wrong?
Chrome shows the 'The site has been updated in the background' notification

(Btw, for some time it didn't, I was hoping this was intended behaviour and changed my code but now I'm once more getting the message)

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 58.0.3029.110  Channel: stable
OS Version: 10.0
Flash Version: 

I understand that the current behaviour has some reasoning behind it but I think it's kind of weird that developers have no way of synchronizing notifications between devices. Possible use-cases would be:

- dismiss notification on all of the user's devices when he chose to dismiss it
- dismiss notification when it is no longer relevant, for example in case of an event that has passed
 

Comment 1 by chem...@gmail.com, Jun 7 2017

PS: I had a workaround in place for this. I would send a push message that told the Service Worker to cancel a notification with a certain tag. It would then *create* a notification with placeholder content ("...") and immediately dismiss it.

This works but is very undesirable behaviour as the user would see a notification pop up and then disappear. Also, it uses more resources which are limited on mobile.
Labels: Needs-Feedback Needs-Triage-M58
Please provide a reproducible testcase.
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 10 2017

Status: Archived (was: Unconfirmed)
No feedback was received in the last 30 days from reporter "chemo.b@gmail.com", so archiving this. Please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment