GoogleChromeLabs / web-push-codelab

Other
556 stars 289 forks source link

Push Event does not get captured in the push event listener in the SW #70

Closed pabhishek-deloitte closed 6 years ago

pabhishek-deloitte commented 6 years ago

Hi, As mentioned in the docs, the SW is registered and the user is subscribed to push events. On launching push events from the application tab, the SW does not capture the event. Browser Version : Google Chrome | 66.0.3359.139 Has there been any update that is missing in the documents or am I missing something very obvious?

capture1 capture2 capture3
pabhishek-deloitte commented 6 years ago

Push event was not happening because in the Push companion website, I was replacing the keys in the payload JSON with applications' server keys. I was also able to generate push notifications from an express server using web-push library following the documentation. Closing this issue.