Skip to content

[Tracking] Push notification follow-ups after #417 #447

Open

Description

@HMarzban

Summary

#417 fixed push delivery and recovery with the smallest change. These items were kept out of its scope on purpose. Each one is optional. File a separate issue for an item before building it.

Candidates

  • Per-device online suppression. Today one visible tab on any device suppresses push to all of that person's devices (is_user_online). Suppress per device instead.

  • Deactivation metric and alert. Built as Count push subscriptions the server switches off, and alert on a spike #607 (f28a9e57d). Open until Grafana shows the alert rule. Count subscriptions switched off, by reason (404/410, failed count), and alert on a spike. The FCM outage of 2026-08-09 went unnoticed for two months.

  • VAPID keys in the worker health check. Built as Mark the worker unhealthy when production push has no VAPID keys #608 (8d45ccacd). The worker /health body already reports workers.push.vapid_configured, and the admin dashboard shows it. But the health status ignores it, so nothing alerts when VAPID_PUBLIC_KEY or VAPID_PRIVATE_KEY is missing. Empty keys in dev must stay healthy (see the Fix the full-Docker dev stack: no webapp source in the container, and no host.docker.internal on Linux #482 note below).

  • Key match at deploy. Built as Fail the deploy when the browser and server VAPID public keys differ #609 (fad4308cf). NEXT_PUBLIC_VAPID_PUBLIC_KEY (build time) must equal VAPID_PUBLIC_KEY (runtime). Check it in the deploy workflow.

  • Android badge icon. favicon-32x32.png is fully opaque, so Android shows a white square. Use a 96×96 white-on-transparent badge (design system rules apply).

  • Test-push button in Settings → Notifications.

  • Faster save after pushsubscriptionchange. The client saves the new endpoint within a day. Save it on the next load instead, if the endpoint changed.

  • Push on local next dev. next-pwa is disabled outside production, so registerPushSubscription registers an old public/sw.js from a past production build. That worker goes redundant, and subscribe fails with SERVICE_WORKER_FAILED. Register public/service-worker.js in dev, or remove the old build files.

  • Repair a missing subscription. With permission granted but no saved stamp, the load-time check returns early, so nothing saves the row. The Settings switch reads only the browser subscription, so it can say "on" with no row. The prompt card never shows once permission is granted. Re-save when permission is granted and a browser subscription exists without a stamp. This needs a ruling on what "turned off" means.

  • Show the real subscribe error. Settings always shows a generic "Failed to enable notifications" toast, and the prompt card only logs to the console.

  • Small payload and naming fixes. A reaction push always shows 👍, because the payload has no reaction_emoji. Android devices are named "Chrome on Linux". Mac Safari subscriptions are stored as ios.

Related

Activity

  1. added theissue type on Oct 6, 2026
  2. added
    enhancement
    on Oct 6, 2026
  3. HMarzban commented on Oct 15, 2026

    @HMarzban
    CollaboratorAuthor

    Related issues


    Cross-link review, 2026-10-15. Generated by Claude Code

  4. modified the milestones: v2.2.0, v2.3.0 on Oct 18, 2026
  5. HMarzban commented on Oct 24, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-10-24

    Build three candidates in v2.3.0: the deactivation metric and alert, the VAPID keys in the worker health status, and the key match at deploy. The agent files one issue for each before it builds it, as this tracker says. The other four stay candidates. The Android badge icon would need a design-system ruling first.

  6. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    Status, 2026-11-03. The three ruled candidates are built, pushed and deployed on 2026-11-03. They are #607 (f28a9e57d), #608 (8d45ccacd) and #609 (fad4308cf). #608 and #609 are closed. #607 stays open for its own check. Left:

  7. modified the milestones: v2.3.0, v2.4.0 on Nov 4, 2026
  8. HMarzban commented on Nov 4, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-11-04

    Moved from milestone v2.3.0 to milestone v2.4.0, from the v2.3.0 open-issue review. Its v2.3.0 scope is done: #608 and #609 are closed, and #607 tracks its own Grafana check on v2.3.0. The other seven candidates are not ruled yet.

    The issue stays open. Its remaining items are unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mobileenhancement

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions