gpxstudio / gpx.studio

The online GPX file editor
https://gpx.studio/
MIT License
117 stars 19 forks source link

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

Open opoto opened 1 month ago

opoto commented 1 month ago

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" />
vcoppe commented 3 weeks ago

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