Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
rest notification: service-worker path for Android, use existing string
rootd0075eeddf66
diff --git a/frontend/src/store/useUI.js b/frontend/src/store/useUI.jsindex 0330ee7bb..d1a121a79 100644--- a/frontend/src/store/useUI.js+++ b/frontend/src/store/useUI.js@@ -33,7 +33,14 @@ const maybeRestNotification = async () => {if (!document.hidden && document.visibilityState !== 'hidden') returnif (Notification.permission !== 'granted' && !(await requestRestNotificationPermission())) returntry {- new Notification(t('Rest over'), { body: t('Rest over — next set!') })+ // Android Chrome forbids the Notification constructor (Illegal constructor) - the+ // service-worker registration path is the one that actually pops there.+ const reg = await navigator.serviceWorker?.getRegistration?.()+ if (reg?.showNotification) {+ reg.showNotification(t('Rest over — next set!'), { body: t('Rest over — next set!') })+ return+ }+ new Notification(t('Rest over — next set!'), { body: t('Rest over — next set!') })} catch {// Intentionally ignore: notification APIs vary by browser and policy in edge cases.}