-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Improve PWA manifest #2060
Improve PWA manifest #2060
Conversation
hey there! thanks for the PR. I think you're right that the manifest we include could be improved - but I'm not sure if all of those should be included by default. I suggest to remove: Also, the changes you make should also be made in the |
I've just fixed these problems in 2 commits. |
Cool - sorry if it wasn't clear but the manifest changes needs to be in both the We need to also need to remove that last comma after theme_color so it's valid JSON - so should look like this:
|
[pull] latest from master
I've updated the manifests and pulled the latest changes from master. |
This looks good to me. I ask, because the way this project works, this matters: is there any functional difference between defining an empty string as |
No there isn't.
This is a short snippet from the manifest file from my website's repository: "name": "Richie Bendall's Website",
"short_name": "Richie Web", |
Thanks, I ask because, as with anything we publish, this file will be passed around liberally, unchanged. I prefer instructive defaults. Empty attributes work for that. We just need to make sure there's no downside to an empty attribute. |
I see... If the user wants PWAs to be supported, him/her can fill out the fields. Otherwise, it can be left alone and not cause errors in the application. |
👍 |
I've been testing this today and found the following:
|
Ok, I'll look into that and make necessary changes |
Hi @Richienb - please feel free to re-add the |
I've readded the display standalone attribute to both of the site.webmanifest files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be useful to have an API. You would request individual files and include custom fields as queries. For example: I'm not sure if the hosting service currently hosting the site, Dreamhost supports implementing custom APIs but I know that the implementation is possible because Google Fonts and JsDelivr are currently doing something similar to this. I admit that this idea sounds very ambitious and probably won't work but it certainly sounds nice to have. |
Types of changes
Checklist:
Pull requests should be thought of as a conversation. There will be some back and forth when trying to get code merged into this or any other project. With all but the simplest changes you can and should expect that the maintainers of the project will request changes to your code. Please be aware of that and check in after you open your PR in order to get your code merged in cleanly.
Thanks!