Skip to content

PWA splash screens and service worker cleanup - #124

Merged
chriswritescode-dev merged 1 commit into
mainfrom
sw-pwa-stale
Feb 13, 2026
Merged

PWA splash screens and service worker cleanup#124
chriswritescode-dev merged 1 commit into
mainfrom
sw-pwa-stale

Conversation

@chriswritescode-dev

Copy link
Copy Markdown
Owner

Summary

  • Add iOS splash screen images and media query links for all iPhone/iPad models
  • Simplify service worker registration to fire-and-forget pattern
  • Fix build by adding missing workbox-window dependency

Changes

  • index.html: Add 14 apple-touch-startup-image link tags with correct device dimensions and pixel ratios
  • serviceWorker.ts: Simplify from async/await returning unused Promise to synchronous void with .then()/.catch() chain
  • main.tsx: Update call site to match simplified registration
  • package.json: Add workbox-window (fixes build), move workbox-core to devDependencies
  • splash/: Add 14 PNG splash images covering iPhone SE/8 through 15 Pro Max and iPad 10.2" through 12.9"

- Add iOS splash screen images and media query entries for all device sizes
- Fix splash screen media query for iPhone SE/8 (375x667 at 2x)
- Simplify registerServiceWorker to fire-and-forget void function
- Add workbox-core and workbox-window as dev dependencies for SW build
@chriswritescode-dev
chriswritescode-dev merged commit e3051b8 into main Feb 13, 2026
1 check passed
@chriswritescode-dev
chriswritescode-dev deleted the sw-pwa-stale branch February 15, 2026 01:35
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.

1 participant