GCM Push message not received on client, with GCM subscription Id in the browser, but no listing in gcm-internals
Reported by
vishalsi...@yahoo-inc.com,
Apr 8 2017
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 Steps to reproduce the problem: NA What is the expected behavior? Push messaged should be received by the client What went wrong? This specific client has a GCM subscription ID in the browser. We are receiving a successful response on message push to GCM for this ID. However the browser is not receiving any push events. Note: On the gcm-internal, we cannot see the website listed in 'Registered App Ids' section. GCM Id: https://android.googleapis.com/gcm/send/dQAvbOkxjss:APA91bH__5Se9insK15RfoivNt-FVeZ6UobGOISRyTKvRiZNVxwiLIh1tR1M0XPOmG34C1n51wLTfeUpCZ9O-h3sZCmzkp3Db6zgI01o9knKdMaDDQ8Q788jbSZHf8D1dDkboCa9AK2t Did this work before? N/A Does this work in other browsers? N/A Chrome version: 57.0.2987.133 Channel: stable OS Version: OS X 10.12.3 Flash Version: Wondering if there is a way to check on the GCM side, whether a push is successful to this particular ID
,
Apr 11 2017
The subscription indeed is valid and scoped to your domain. If the value does not show up in chrome://gcm-internals/ then it means that a data corruption occurred. Chrome 57 includes several improvements to mitigate this situation. Starting with Chrome 59 we'll verify the subscription before passing it back to the Service Worker, which should eliminate this issue entirely. Are you seeing this on an individual machine, or in multiple places?
,
Apr 12 2017
Thanks for verifying the subscription. We came across this issue since it happened on one of our teammates machine. There might be others outside of the team facing it that we are unaware of. However based on our analytics, only 30% of the subscribed users are sending receipts to us for push notifications. We do have a 4hr TTL so most of them might be offline during the span and not receiving it. (Also to provide some more context, Push notifications work on a different profile in chrome for this user. Also push notifications work for another domain for this user on the original profile) Will such users start getting notifications again once chrome updates, or is there any other way for us to determine a user in this state, for example any API or a GCM dashboard with stats/user?
,
Apr 12 2017
We establish separate connections to GCM per profile, so be sure that you've verified that the subscription isn't listed in the chrome://gcm-internals/ page for the correct profile. They will display different information. Subscription IDs issued by Chrome are IID tokens, so you can use the mechanism documented on the following page to get more information: https://developers.google.com/instance-id/reference/server#get_information_about_app_instances Depending on how your implementation works, 30% is not unheard of. It's in line with what we measure for Android apps too.
,
Apr 13 2017
Yes, the subscription wasn't listed in the correct profile. (The one with GCM ID mentioned above and not receiving notifications). Thanks for the API, I see that the user is registered since Jan 30, 2017.
,
Jun 30 2017
Hi Vishal -- is there anything more to do here following the meeting we had, or could this issue be closed?
,
Jul 27 2017
Hi, We haven't seen this issue again on any of the devices we have access to. I think we can close it. Thanks!
,
Jul 27 2017
Great, thank you for confirming! Please feel free to reach out if there's further issues. |
||
►
Sign in to add a comment |
||
Comment 1 by kavvaru@chromium.org
, Apr 11 2017