Skip to content

[BUG] selkies Progressive Web App (PWA) not working #39

@stevenwfoley

Description

@stevenwfoley

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The Selkies manifest.json is incorrectly referenced in index.html

This is probably a higher level selkies base image issue, and not firefox specific, but I'm using firefox so this is where I started. Please let me know if it's more appropriate for me to report this in your docker-baseimage-selkies repo or even the selkies-project repo.

Expected Behavior

Within a web browser, with a properly configured manifest.json, the browser should offer to Install the page as an application. The current selkies index.html has the manifest.json specified in the <header> section, but according to this documentation, it should be in the <head> section.
https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest

I tested moving the manifest.json link to the <head> section and it enables proper PWA functionality.

Steps To Reproduce

  1. Chrome in Android
  2. Browse to the firefox hosted container URL
  3. Click the 3 dots Settings menu, select "Add to Home screen"
  4. As its currently configured with the manifest.json in the <header> section, you'll get a prompt to create a home screen shortcut. Moving it to the <head> section enables Chrome to find the file and provide options to Install the app.

OR

  1. Chrome in Windows
  2. Browse to the firefox hosted container URL
  3. Open the developer tools
  4. Select the Application tab, and then the Manifest item in the left tree
  5. As its currently configured with the manifest.json in the <header> section, Chrome does not find the manifest.json. Moving it to the <head> section enables Chrome to find the file and provide options to Install the app.

Environment

- OS: unraid

CPU architecture

x86-64

Docker creation

N/A

Container logs

N/A

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions