-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Warning in Chrome: Declaring an icon with purpose: "any maskable" is discouraged. It is likely to look incorrect on some platforms due to too much or too little padding. #679
Comments
I just looked into this, and the conclusion is pretty much what the warning says:
pwa-asset-generator is currently generating a single icon for both purposes. The image has a lot of padding, making the icon smaller than it needs to be for We should solve this by generating separate icon files for the two different purposes. |
Hi @frederikhors, thanks for reporting this issue. It's not recommended to use both maskable and any purposes together anymore. With the upcoming fix, when |
I'm using PAG with the default options (I love convention over configuration). Will it still be like this? |
Maskable will stay as the default option, but the purpose output will be 'maskable' instead of 'maskable any'. |
It's not recommended to use the maskable and any purposes together anymore. This setting also raises issues with the new lighthouse audit. With this fix, when maskable is provided as an option to the library, it will be only setting maskable as a purpose in the manifest. BREAKING CHANGE: Instead of setting 'maskable any' as a purpose, the library will be setting 'maskable' value only when provided the maskable option. fix #679
As both maskable and non-maskable icons can be built and defined for the same app, there should be a distinction on the icon file name depending on maskable option usage. BREAKING CHANGE: The file name template of the manifest icons is updated. fix #679
It's not recommended to use the maskable and any purposes together anymore. This setting also raises issues with the new lighthouse audit. With this fix, when maskable is provided as an option to the library, it will be only setting maskable as a purpose in the manifest. BREAKING CHANGE: Instead of setting 'maskable any' as a purpose, the library will be setting 'maskable' value only when provided the maskable option. fix #679
As both maskable and non-maskable icons can be built and defined for the same app, there should be a distinction on the icon file name depending on maskable option usage. BREAKING CHANGE: The file name template of the manifest icons is updated. fix #679
As both maskable and non-maskable icons can be built and defined for the same app, there should be a distinction on the icon file name depending on maskable option usage. BREAKING CHANGE: The file name template of the manifest icons is updated. fix #679
# [5.0.0](v4.3.9...v5.0.0) (2021-10-07) ### Bug Fixes * **main:** prevent unnecessary newlines on index HTML file ([a40d016](a40d016)), closes [#434](#434) * **meta:** fix wrong file types of icons' html ([a6d2c58](a6d2c58)), closes [#495](#495) ### Features * **file:** add maskable keyword to the manifest icons' file name ([47a09c6](47a09c6)), closes [#679](#679) * **main:** use either 'maskable' or 'any' as a purpose ([4bdce80](4bdce80)), closes [#679](#679) ### BREAKING CHANGES * **file:** The file name template of the manifest icons is updated. * **main:** The newlines created when re-saving meta tag changes on the same index HTML file will be removed. The prettier step to re-format after library execution is now optional and nice to have. * **main:** Instead of setting 'maskable any' as a purpose, the library will be setting 'maskable' value only when provided the maskable option.
🎉 This issue has been resolved in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I just used this library for the first time today and i now have errors in chrome BECAUSE "any" is not present in the "purpose":
if i manually add "any" or only use "any" as the error suggests:
or
error 1 and 3 go away. so its a little confusing if it should be there or not. EDIT: though i still get the same errors when i dont have "any": so chrome is complaining either way for me |
Same problem for me in chrome 95.0.4638.69 |
Thanks for reporting the warnings. You can track the updates on this issue: #725 |
Describe the bug
I'm having this warning in Chrome 93 (Win 10).
Screenshots
The text was updated successfully, but these errors were encountered: