upptime icon indicating copy to clipboard operation
upptime copied to clipboard

PWA Manifest Not Using User Defined Fields

Open LukePrior opened this issue 4 years ago • 1 comments

Describe the bug The manifest.json file which is used to enable PWA functionality appears to be a static file and is not dynamically generated from the contents of .upptimerc.yml. The file should also be renamed to webmanifest.json. The website should also install a service working so that the page is installable.

Expected behavior I expect that when the site is being generated by the Github Actions that a manifest.json file is dynamically created, I have proposed a mapping of user inputs to manifest fields below.

Current Fixed file

{
  "background_color": "#ffffff",
  "theme_color": "#333333",
  "name": "Upptime",
  "short_name": "Upptime",
  "display": "minimal-ui",
  "start_url": "/",
  "icons": [
    {
      "src": "logo-192.png",
      "sizes": "192x192",
      "type": "image/png"
    },
    {
      "src": "logo-512.png",
      "sizes": "512x512",
      "type": "image/png"
    }
  ]
}

My Proposal

"short_name": name, "name": name, "description": introTitle "start_url": https://user.github.io/repo or cname "categories": ["utilities"] "display": "minimal-ui" "background_color": use background colour from the css file in use "theme_color": use background colour from the css file in use "icons": logoUrl fallback to favicon

Screenshots This is what the current fixed file shows in Chrome: image

LukePrior avatar Aug 06 '21 06:08 LukePrior

Good news! If you write your own manifest.json and put it in the assets folder, it will deploy and override.

Ipstenu avatar Oct 31 '25 00:10 Ipstenu