Minishlink / web-push-php-example

An example for sending Web Push notifications, using web-push-php
MIT License
252 stars 89 forks source link

Why push_updateSubscription() after registering service worker? #7

Closed R0byn closed 6 years ago

R0byn commented 6 years ago

Hi, I'm new to the Push API. I'm wondering why it is necessary to update something at the server side after having registered the service worker (see call of push_updateSubscription() in line 47 of app.js) and what to update? From my impression the endpoint, token and key seem to be always the same, even after closing and restarting the browser. Thanks and best regards R0byn

Minishlink commented 6 years ago

Hello @R0byn, sorry for the late reply. They are in practice the same, but they could still change in the future. ;)