Minishlink / web-push-php-example

An example for sending Web Push notifications, using web-push-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why push_updateSubscription() after registering service worker?

R0byn opened this issue · comments

commented

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

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