mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #1669] fix: token extension for PWAs #1683
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1683
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1669
Author: @nihalgonsalves
Created: 3/21/2026
Status: 🔄 Open
Base:
main← Head:ng/pwa-token-extend📝 Commits (1)
6a7c1c4fix: token extension for PWAs📊 Changes
5 files changed (+139 additions, -9 deletions)
View changed files
📝
docs/develop.md(+1 -0)📝
web/public/sw.js(+80 -9)📝
web/src/app/AccountApi.js(+1 -0)📝
web/src/app/Session.js(+13 -0)📝
web/src/components/hooks.js(+44 -0)📄 Description
This adds two things:
periodicsynchandler for the service worker, that will automatically refresh once per day.In reality, the latter is not guaranteed, and is only supported in a very niche case: specifically Chrome PWAs that are installed. No other browser supports it, and normal Chrome tabs deny the periodic sync with
PermissionDenied. Still nice to have and reuses the same code the push notification handler uses!(Probably) fixes #1203, fixes #1533
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.