Skip to content

Add PWA install prompt for mobile devices#554

Draft
Copilot wants to merge 8 commits into
devfrom
copilot/add-install-button-pwa
Draft

Add PWA install prompt for mobile devices#554
Copilot wants to merge 8 commits into
devfrom
copilot/add-install-button-pwa

Conversation

Copilot AI commented Feb 11, 2026

Copy link
Copy Markdown

Mobile users had no guidance on installing the SkyEmu PWA to their home screen. Added a modal popup that appears on first mobile visit with platform-specific installation instructions.

Implementation

Modal popup with device detection

  • Detects mobile via user agent + navigator.maxTouchPoints > 0
  • Platform-specific instructions for iOS Safari, Android Chrome, and generic mobile browsers
  • Styled with SkyEmu theme colors (#759091)

User preference handling

  • Shows 2s after page load on first mobile visit
  • localStorage persistence for "Don't show again" option
  • Suppressed when already running in standalone mode
  • Event listeners attached once via flag to prevent duplicates

UI

Desktop (with generic instructions)
Desktop View

Mobile (Android-specific instructions)
Mobile View

Files Changed

  • src/shell.html - Added popup HTML, CSS, and JavaScript logic
Original prompt

This section details on the original issue you should resolve

<issue_title>Web build has no install button for PWA.</issue_title>
<issue_description>I heard this was a progressive web app so I thought i was able to install it, but i cant see the install app button on chrome or anywhere.</issue_description>

<agent_instructions>Can you add a popup with instructions or a link to add the PWA to the homescreen when first opened on a mobile device. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 5 commits February 11, 2026 01:30
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Co-authored-by: skylersaleh <7118296+skylersaleh@users.noreply.github.com>
Copilot AI changed the title [WIP] Add install button for progressive web app Add PWA install prompt for mobile devices Feb 11, 2026
Copilot AI requested a review from skylersaleh February 11, 2026 01:37
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

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.

Web build has no install button for PWA.

2 participants