Skip to content

Fix desktop notification settings invoking unsupported service workers #2189

Closed

Description

@integry

User reports Automation Rules > Personal notifications > Browser push shows both VAPID configuration warning and Failed to get a ServiceWorkerRegistration: current origin propr-app://renderer is not supported. Root traced useBrowserPush.tsx: browserSupportsServiceWorkers only checks navigator property existence; getOrRegisterServiceWorker calls getRegistration before the guarded registration helper. serviceWorkerRegistration.ts checks production/secure-context/property but not the URL scheme. NotificationSettingsSection checks server VAPID configuration before client capability, so desktop gets misleading setup instructions.

Fix through ProPR on desktop epic branch only, never main. Keep HTTPS browser/PWA Web Push working. Gate all service-worker registration, lookup, ready/subscription paths on actual supported host/origin before invoking browser APIs; do not change the secure custom desktop protocol or relax permission policy. In desktop settings clearly distinguish unsupported browser Web Push from missing server VAPID keys; configuring keys alone must not be presented as enabling this unsupported origin. Preserve personal notification preferences and other notification channels. If native desktop notifications are not implemented, say so truthfully rather than pretending Web Push works or silently hiding the entire settings section. Do not add VAPID secrets/configure external services. Cover propr-app with API objects present, HTTPS configured/unconfigured and unsupported API cases, no unhandled errors/permission prompts. Add a rendered desktop settings check. Link Closes issue in PR, request Ultrafix, validate full UI strict lint/tests. Independent from #2185 and Windows deferred.

Activity

  1. propr-dev commented on Sep 7, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-5.6-sol
    • Branch: 2189/gpt-5.6-sol-fix-desktop-notification--20260907-1839-fet
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2189-20260907-1839-gpt-5.6-sol-fet

    🔍 Track Task Execution

  2. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Please implement the desktop-specific push capability correction and regressions described above. Preserve real HTTPS Web Push behavior and make desktop support status truthful.

  3. added a commit that references this issue on Sep 7, 2026
  4. integry commented on Sep 7, 2026

    @integry
    OwnerAuthor

    Completed by #2194, merged into desktop epic at ac1aec0. Ultrafix 9/10, root full integrated UI suite 688 tests passed, strict lint and 25 focused regressions passed, rendered preview checked. Explicit closure for non-default epic target. Live app update follows integration; no main merge.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions