Automatically renew the push notifications subscription

Continuing the discussion from Android push notifications stop working:

Looks like Chrome will finally implement the pushsubscriptionchange event which is already supported by all other browsers who implement the modern web specs.

We have plenty of cases where the notifications cease to work 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.

14개의 좋아요

4 posts were split to a new topic: Don’t remove all push subscriptions on logoff

https://github.com/discourse/discourse/pull/11994/files

5개의 좋아요

이제 병합되었습니다. 앞으로 약간의 시간이 지난 후 푸시 알림이 작동하지 않는다면 #contribute:bug에 보고해 주세요.

1개의 좋아요