-
-
Notifications
You must be signed in to change notification settings - Fork 529
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(pwa): add maskable icon to web manifest #1456
Conversation
Run & review this pull request in StackBlitz Codeflow. |
✅ Deploy Preview for elk-zone ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for elk-docs canceled.
|
@userquin Know what? I'm sorry, I'm wrong. I think the "bug" I reported is actually a normal effect from using non-Chrome browsers to install PWAs on Android, and not anything to do with the PWA itself. I must have used Chrome to install the ones that worked properly, and used Edge to install the others, and completely forgotten. So yeah, I can confirm that it installs properly when using Chrome as the installing user agent, and that it does not work with Edge—but, again, this is expected. Still, the maskable icon is a win, though I'd recommend it be higher resolution. (Here's what the PWA loading screen looked like before—all black—and what it looks like with this PR—the round, lower-res icon.) |
Unless there's time and energy to spend on making the maskable icon high-res, I'd suggest maybe this issue and PR should just be closed, since the default seemed to work well for me. (Again, I apologize for sending you on a wild goose chase with this report.) |
@josh-collinsworth thx for feedback, I'll add a 512x512 maskable icon, I need to create and optimize them... |
pref: optimize pwa images
can you test again when ready? |
Looks much better, resolution-wise. It does still have the light-colored circle background. If that's the desired effect, I'd say 👍 |
fix: dev apple-touch-icon with white bg color
can you test again? maskable icons sizes were wrong (180px, updated to 512px) |
Still looks good on my end. |
Awesome! |
@dunxen so, it seems iOS now using 512x512 pwa icon instead maskable one and ignoring |
Yes looks like that! |
Thanks! Seems to be working on 16.4 Dev Beta 2: |
Latest changes on Chromium based browsers complains about not having a maskable icon (LightHouse): just added the variants adding 10px padding to current
apple-touch-icon.png
icons.Tested on Android from Chrome:
I need someone to check it on iOS...
/cc @antfu sorry man, can you try installing preview and check the icon is ok?
/cc @josh-collinsworth can you test preview PR on Edge Mobile?
closes #1449