Skip to content

Require native PWA installation like Health Hub - #6

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/native-pwa-install-only-df55
Sep 5, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/native-pwa-install-only-df55

Conversation

@rawshn97

@rawshn97 rawshn97 commented Sep 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • expose Android/Desktop Install only when Chromium provides beforeinstallprompt
  • call the native prompt directly from every actionable Install entry point
  • remove the separate install-help control and all Chrome shortcut instructions
  • hide Settings > Install App until native installation is available
  • retain only iOS Share → Add to Home Screen guidance
  • remove self-referential related_applications and installed-app detection for strict Health Hub parity
  • restore the canonical production manifest identity
  • update PWA regression contracts, spec, version, and service-worker cache

Root cause

FloRo's Android fallback linked users to Chrome's combined "Install and create shortcut" menu. Selecting Create shortcut makes a bookmark that opens with the URL bar. Health Hub exposes no actionable Android install control unless it holds beforeinstallprompt, then calls prompt() directly.

Verification

  • static PWA contract, 65 required IDs, JavaScript syntax, manifest, and icon checks pass
  • clean Android profile: native event held, only Install + Not now shown, Settings install available, zero installability errors
  • Android without native event: only passive status + Not now shown; no install/help control and Settings install hidden
  • iOS without native Chromium prompt: passive banner and Settings Share → Add to Home Screen guidance remain
  • service-worker cache v64 activates with the strict-parity installer
  • GitHub CI and Vercel checks pass

Deployment note

The canonical production URL still serves the previous portfolio submodule revision. After merge, the rawshn-portfolio submodule must be bumped and production deployed before this behavior is live.

Open in Web Open in Cursor 

Co-authored-by: Roshan Raj Mishra <mishra.roshanraj@gmail.com>
@vercel

vercel Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ble_controller Ready Ready Preview Sep 4, 2026 11:55pm UTC

@rawshn97
rawshn97 marked this pull request as ready for review September 4, 2026 23:53
Co-authored-by: Roshan Raj Mishra <mishra.roshanraj@gmail.com>
@cursor
cursor Bot merged commit 803e9af into main Sep 5, 2026
3 checks passed
@rawshn97
rawshn97 deleted the cursor/native-pwa-install-only-df55 branch September 5, 2026 12:42

This branch was successfully deployed

1 active deployment
Preview — ca0b2aa5 Deployed Sep 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants