3 ms·
"You’ll receive an error if a user has revoked the notification permission on your page (or if the subscription has expired). You can catch these errors and rem
by tentacleuno 3y ago
"You’ll receive an error if a user has revoked the notification permission on your page (or if the subscription has expired). You can catch these errors and remove invalid subscriptions."
From an outside perspective, this doesn't seem right -- wouldn't you want to check the error is because the channel has been revoked? It could be due to a temporary outage on either your side or the push server itself. With the code above, you might end up revoking all of your push subscriptions (upon broadcast) if your network goes down.