Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement] Add manifest to make it "installable" #38

Open
opoto opened this issue Jul 28, 2024 · 1 comment
Open

[Improvement] Add manifest to make it "installable" #38

opoto opened this issue Jul 28, 2024 · 1 comment

Comments

@opoto
Copy link

opoto commented Jul 28, 2024

Adding a manifest file would to make the app installable. The main benefit is that it is then launched into a decided window with no browser decoration (URL bar, navigation buttons, tabs...), which is particularly useful on mobile where each pixel counts!

Two steps needed:

  1. Create a manifest.json file, such as
{
  "name": "gpx.studio",
  "short_name": "gpx.studio",
  "start_url": ".",
  "display": "standalone",
  "background_color": "#fff",
  "description": "The online GPX file editor",
  "icons": [
    {
      "src": "icon.svg",
      "sizes": "any"
    }
  ]
}
  1. Declare the manifest in index.html
<link rel="manifest" href="manifest.json" />
@opoto opoto changed the title Add manifest to make it "installable" [Improvement] Add manifest to make it "installable" Jul 28, 2024
@vcoppe
Copy link
Contributor

vcoppe commented Aug 16, 2024

Could use https://github.com/vite-pwa/vite-plugin-pwa

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

No branches or pull requests

2 participants