Skip to content

Desktop app: a fresh install shows "push subscription is missing", and Turn alerts on again cannot fix it #2802

Closed

Description

@devswha

What happens

On a fresh first launch of the desktop app (app/electron), the page shows a red notice:

This device's push subscription is missing. Turn alerts on again.

Pressing Turn alerts on again does not fix it; the notice then says:

This device would not make a push subscription. Check that push messaging is allowed in its settings, then try again.

There is no setting the user can change, so every desktop user sees a fault notice on first start that cannot be cleared except by closing it.

Seen on both builds from origin/main b2d9e5d: the Linux AppImage (Ubuntu 26.04, Xvfb) and the macOS arm64 app (macOS 27, unsigned), each in a fresh user data folder.

Why

  • The app grants the notifications permission to the server's pages (allowPermissions in app/electron/src/main.ts), so notificationState() is granted.
  • PushManager exists in Electron's Chromium, so pushSupported() is true.
  • Electron has no push service behind PushManager.subscribe, so no subscription ever exists and the repair fails ("refused").
  • classifyPushHealth (src/lib/pushHealth.ts) then reports missing with repair: true.

Expected

The desktop app either treats web push as unsupported (no notice; alerts come some other way, e.g. Electron's own Notification while the app runs), or the page does not offer a repair that can never succeed there.

Reproduce

cd app/electron && bun run dist
bun scripts/e2e.ts dist/Ovis-<version>-<arch>.AppImage    # or dist/mac-arm64/Ovis.app

The check "a fresh first launch shows no alerts fault" reports it (marked as a known bug in the script).

Activity

  1. devswha commented on Nov 4, 2026

    @devswha
    OwnerAuthor

    Being fixed in #2801. The end-to-end script in #2809 marks this check as KNOWN (#2802); once #2801 lands, that marker comes out so the check fails the run again if the notice returns.

  2. devswha commented on Nov 5, 2026

    @devswha
    OwnerAuthor

    Checked on current origin/main (483fdb8): this no longer reproduces. #2801 (merged as ab1937d) fixed it.

    • pushSupported() in src/lib/push.ts is now false when the user agent has Electron/, so the page treats the desktop app as a browser without web push: classifyPushHealth gets no subscription to check and shows no notice, and the open window's own notifications carry the alerts.
    • The real Electron the desktop app ships (app/electron, Electron 45.2.2), started under Xvfb with a fresh --user-data-dir, reports Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/156.0.8078.80 Electron/45.2.2 Safari/537.36, and the /\bElectron\// check matches it. Nothing under app/electron overrides the user agent (git grep -i useragent origin/main -- app/electron finds nothing).
    • bun test src/lib/pushHealth.test.ts src/lib/push.test.ts src/components/PushHealthNotice.test.tsx: 56 pass, 0 fail, including the desktop-app case feat(setup): show Connect your phone on a first run on the PC, and drop the desktop app's false alerts notice #2801 added ("says nothing in the desktop app, whose PushManager has no push service behind it").

    Not run here: the full AppImage end-to-end script, which lives in #2809 (still open). Once #2809 lands, its KNOWN (#2802) marker on "a fresh first launch shows no alerts fault" can come out, so the check guards against this coming back.

  3. devswha commented on Nov 5, 2026

    @devswha
    OwnerAuthor

    Closing: fixed by #2801 - the desktop app no longer shows the push-subscription error (evidence in the comment above). Please reopen with your app version if you still see it.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions