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

Fix missing PWA icons #54

Open
umglurf opened this issue Sep 20, 2019 · 2 comments
Open

Fix missing PWA icons #54

umglurf opened this issue Sep 20, 2019 · 2 comments

Comments

@umglurf
Copy link

umglurf commented Sep 20, 2019

When starting up listlings on an new and empty redis, the icon_small and icon_large settings are not set. This causes the icons field i manifest.webmanifest to be empty, and thus the application does not work as an PWA.
Is it supposed to be empty or is that a bug? I was not able to figure out how to set it the correct way, so ended up editing the Settings key in redis directly.
Tested on both 0.18.1 and 0.18.2

@noyainrain
Copy link
Owner

Thanks for the feedback @umglurf, good point!

First, to set a custom icon, staff members can use "Edit site settings" from the main menu. The first user browsing to a fresh instance of Open Listling automatically gets staff privileges. Thinking about it, this is not mentioned anywhere yet, so we should probably put that in the README. 😅

Is it supposed to be empty or is that a bug?

Originally, before implementing PWA functionality, icons were completely optional and thus empty on purpose. However, because like you mention they are required for PWAs, this is now indeed a bug.

Going forward, I think we should ship a default icon, which can still be overridden by the administrator if they want to have a custom one.

In the meantime, you can set the following values via "Edit site settings" as mentioned above:

  • Icon small: /static/images/icon-small.png?v=6547bc98233711f90d23cdde251c780d
  • Icon large: /static/images/icon-large.png?v=00cadbcb574ddc20acef8561efdc8d95

If there are still any open questions, please shoot! 😊 Note that I'm on vacation next week and will reply only after I'm back.

@noyainrain noyainrain changed the title Provide instructions of how to set up icons Fix missing PWA icons Oct 22, 2019
@noyainrain
Copy link
Owner

Depends on #58.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants