New issue
Advanced search Search tips

Issue 836690 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Even Listener Push gets called multiple times for one message

Reported by richie3...@gmail.com, Apr 25 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

Steps to reproduce the problem:
1.  Send a push notification to a android mobile or chromium windows version.
2.If the notification is sent to lots of users and your server becomes busy and takes bit of time to send the message when requested, multiple times Push Listener function is called.
3. Due to which there is increase in load for server as multiple request is sent from the same user and many people get the same message multiple times

What is the expected behavior?
Push Event gets called only once

What went wrong?
self.addEventListener('push', function(event) {
console.log('inside push')
});
This function gets called multiple times for one push

Did this work before? Yes Not sure

Does this work in other browsers? Yes

Chrome version: 65.0.3325.181  Channel: n/a
OS Version: OS X 10.12.0
Flash Version:
 
Screen Shot 2018-04-25 at 10.27.07 AM.png
113 KB View Download
Screen Shot 2018-04-25 at 10.26.42 AM.png
465 KB View Download
Screen Shot 2018-04-25 at 10.28.22 AM.png
86.8 KB View Download
Labels: Needs-Bisect Needs-Triage-M65
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET Needs-Feedback
richie3355@ Thanks for the issue.

Request you to provide a sample file/test URL where this issue can be reproduced and also a screen cast of the steps followed which will be helpful in further triaging of the issue.

Thanks...
Hi, 

I have attached the sw.js which is getting registered. In that the push listener gets fired multiple times for single message request from firebase.
Project Member

Comment 4 by sheriffbot@chromium.org, Apr 26 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
richie3355@ Thanks for the update.

As per comment #3, we don't have Firebase setup done to test this as of now. However, would it be possible to attach sample html file with the above test case for the ease of repro on Desktop and check where it regressed.
Also requesting someone from Blink>PushAPI team to look into this issue and help in further triaging.

Thanks..
thanks for the update somehow it got sorted. Now only getting one message per request. 
Project Member

Comment 7 by sheriffbot@chromium.org, Apr 27 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: Needs-Feedback
richie3355@ Thanks for the update.

As per comment #6, can you please confirm if this issue can be closed?

Thanks..

Comment 9 by peter@chromium.org, Apr 30 2018

Status: WontFix (was: Unconfirmed)
When this happens again, could you please record (and screenshot) the data on the following page so that it's easier to see what's going on?

    chrome://gcm-internals
the network tab screenshot which i sent was of  chrome://gcm-internals only. The issue got resolved somehow and you can close the issue now. Thanks

Sign in to add a comment