Add push notifications: rest-timer alert + workout-day reminder
Web Push (VAPID) backend: keys auto-generated on first run, per-user subscriptions, one new dependency (web-push). The rest timer schedules a server-side push on start/extend and cancels it on skip or on-screen completion, so it only actually fires if the tab got suspended before finishing. A per-minute check sends an optional daily reminder on days with a planned routine that hasn't been logged yet. Opt in per-profile in Settings — requires a signed-in passkey profile.
This commit is contained in:
1 parent
84c59129e3
commit
4c2b6344f7
11 files changed
+448
-7
No files matched your search
@@ -18,3 +18,13 @@ RP_NAME=openGym
|
||||
# RP_NAME=openGym
|
||||
#
|
||||
# (Point your proxy at the web container's WEB_PORT. See docs/SELF_HOSTING.md.)
|
||||
|
||||
# ── Notifications (optional) ───────────────────────────────────────────────
|
||||
# Push works out of the box — VAPID keys are generated on first run and saved
|
||||
# to ./data/vapid.json. The only thing worth setting yourself:
|
||||
#
|
||||
# TZ=Europe/Zurich
|
||||
#
|
||||
# Sets the container's timezone so the workout-day reminder fires at the time
|
||||
# you actually pick, not UTC. Find your zone name at
|
||||
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
Reference in new issue
Block a user