# Automatically renew the push notifications subscription

**URL:** https://meta.discourse.org/t/automatically-renew-the-push-notifications-subscription/125179
**Category:** Feature
**Tags:** pwa, push-notifications
**Created:** [August 8, 2019, 12:10am UTC](https://meta.discourse.org/t/automatically-renew-the-push-notifications-subscription/125179 "2019-08-08T00:10:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 8, 2019, 12:10am UTC](https://meta.discourse.org/t/automatically-renew-the-push-notifications-subscription/125179/1 "2019-08-08T00:10:05Z")

</div>

Continuing the discussion from [Android push notifications stop working](https://meta.discourse.org/t/android-push-notifications-stop-working/124676):

Looks like Chrome will finally [implement the pushsubscriptionchange event](https://bugs.chromium.org/p/chromium/issues/detail?id=646721) which is already supported by all other browsers who implement the modern web specs.

We have plenty of cases where the notifications [cease](https://meta.discourse.org/t/browser-push-notification-intervals/101380) to [work](https://meta.discourse.org/t/what-may-cause-the-live-notification-to-stop-working-for-a-forum/120068) all of sudden, and this may be one of the reasons why.

Implementing this means handling the event at the service works, plus handling the subscription renewal with minimal (0 if possible) effort from the user. It may be needed to save a few bits of information during subscriptions to make it possible, so you know _which_ subscription you gotta replace.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 21, 2019, 2:35pm UTC](https://meta.discourse.org/t/automatically-renew-the-push-notifications-subscription/125179/4 "2019-11-21T14:35:45Z")

</div>

4 posts were split to a new topic: [Don’t remove all push subscriptions on logoff](https://meta.discourse.org/t/dont-remove-all-push-subscriptions-on-logoff/134038)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 5, 2021, 3:19pm UTC](https://meta.discourse.org/t/automatically-renew-the-push-notifications-subscription/125179/5 "2021-02-05T15:19:23Z")

</div>

[https://github.com/discourse/discourse/pull/11994/files](https://github.com/discourse/discourse/pull/11994/files)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 8, 2021, 7:13pm UTC](https://meta.discourse.org/t/automatically-renew-the-push-notifications-subscription/125179/6 "2021-02-08T19:13:16Z")

</div>

This is now merged. If push notifications stop working after a while from now on please report a #Contribute > Bug.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 8, 2021, 7:13pm UTC](https://meta.discourse.org/t/automatically-renew-the-push-notifications-subscription/125179/7 "2021-02-08T19:13:23Z")

</div>


