--
You received this message because you are subscribed to a topic in the Google Groups "GCM for Chrome feedback" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gcm-for-chrome-feedback/nMgV2vN7zic/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gcm-for-chrome-fe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Filip. That makes sense. GCM has already helped a ton by reducing our infra investment & allowing us to move quickly.I believe for the last month, the latest versions of Chrome have this issue. So version 41 on Macbook Pro.
On Mon, May 11, 2015 at 9:56 AM, Filip Gorski <fgo...@chromium.org> wrote:Hi, Keven,Thanks for another insightful question.What you described could be due to limitations of GCM Client implementation. Sustaining a TCP connection relies on sending a periodic heartbeat message at a pre-negotiated resolution (15 minutes for WiFi and 28 for cellular). When a device running Chrome goes to sleep and then wakes up, sometimes OS does not report the time that have passed properly. This may lead to a situation where you have to wait for some extra time after a wake-up, for GCM to realize that connection is long gone. Establishing a new connection (which might also take a while, if unsuccessful, due to exponential backoff) will cause all of the pending messages to be delivered at once (and that will trigger multiple messages in a row).I hope that makes sense. I know this may feel inconvenient, but good news this is likely not a problem in your code. We are working to make detection better.Could you please share which platforms and Chrome versions behave that way?Thanks.Filip
On Saturday, May 9, 2015 at 11:39:53 PM UTC-7, Keven Wang wrote:In my Chrome extension, I've used Chrome GCM for push notification. In my extension's gcm listener, I create notification cards:chrome.gcm.onMessage.addListener(function(message) {chrome.notifications.create(/* arguments */);});My users have reported numerous times that, they get a batch (more than 2 usually) of notification cards at once, in middle of a chrome browsing session. (not right after laptop wake up) I've tried to debug this by adding console.log() lines in gcm listener. What happens is that, the gcm listener does receive a batch of notifications at once. However, my server actually pushed them out a long time ago, at different times. (I added a "time-send" timestamp when my server calls GCM send.)Is there any way that Chrome GCM is delaying delivery, or Chrome browser delaying gcm listener from firing
--Keven
--
Hi Filip,I'm on Chrome 44.0.2403.157. I'm still experiencing this buffer issue. FYI.
Keven,Is this something that happens to you always when your laptop is waking up from sleep? Or is it the first time in 3 months? Can you reproduce it consistently?Thanks.Filip
On Fri, Aug 28, 2015 at 1:46 PM Keven Wang <ke...@relateiq.com> wrote:
It happened this time after my laptop wakes up from sleep.