GoogleChromeLabs / web-push-codelab

Other
556 stars 291 forks source link

Not getting Push message from Push Companion Site #32

Closed hitgubsenthil closed 7 years ago

hitgubsenthil commented 7 years ago

I have followed codelab steps and created successfully push notification sample and able to get notification from Devtool when I click push. But when I copy paste the subscription and pushed message from Push Companion Site, I didn't get push notification on my browser.

ajdf24 commented 7 years ago

+1

gauntface commented 7 years ago

Few things:

  1. Are you certain the application server key from the companion site is the same as the one in your web app? If it is, could you try refreshing the keys, adding them to your codelab code and then unsubscribing and re-subscribing
  2. I recently altered the codelab and the companion site so that it wouldn't actually allow the subscription details if it's copied from the console (The console truncates the subscription and this catches out so many people - myself included). Could you have been hitting this?
lucasumberto commented 7 years ago

Hello! I ended the codelab and could not make Push Companion work on Chrome 54.0.2840.59 (64-bit), but worked fine on Firefox 54.0 (64-bit) ...

Is there anything that might be causing Push Companion incompatibility with chrome? Or can it be some chrome configuration on my machine?

gauntface commented 7 years ago

chrome on your machine could have hit an old bug where the GCM database becomes corrupt. (I think Chrome 54 is quite old now).

lucasumberto commented 7 years ago

@gauntface Thanks man, my chrome was not with auto update enabled... shame on me

gauntface commented 7 years ago

@lucasumberto no worries, going to close this for now but please re-open if you are still hitting problems.