-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[cli-plugin-pwa] - Splash screen is not displayed on Safari #2889
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
Comments
You might chalk this up to a Safari issue. Configuring splash screens for Safari is somewhat of a huge pain since Safari requires the exact specific device resolution for every splash screen, otherwise it will return a blank white screen. Considering the fact that new iOS devices are released each year, each with different resolutions, this quickly becomes difficult to manage. Other have gone into more detail on this here and here. Thankfully, the Chrome team has made this easier by creating PWA Compat. Just include PWA Compat in your index, as well as a manifest file, and this will configure icons and splash screens properly. |
Actually, as you could see it in my git repo: Is it due to webpack bundle or something else? I don’t know. I’m struggle to troubleshoot this issue. |
It looks like you might need to make sure and add an apple-touch-icon tag, as well as making sure to add all images to your manifest. |
I'm also facing this issue as of today. Has anyone got the solution? Version Update
|
If you're using PWACompat, you need to set up a manifest file that points to two images, one that's 192x192 and one that's 512x512, and it should work. At least it works for me. Something like this:
|
Yea i got that working, what i needed is custom ios "apple-touch-startup-image". |
For people who run in this issue: I use generated splash screens for iOS (https://itnext.io/pwa-splash-screen-and-icon-generator-a74ebb8a130). I found that you need to declare Problem with Vue PWA is that it adds this meta-tag double (because it's also added by See also #3269 |
Version
3.1.1
Reproduction link
http://test-dev-gyhi.s3-website-eu-west-1.amazonaws.com/
Node and OS info
Node 8.12.0 / NPM 6.2.0
Steps to reproduce
I've created
you can clone this Repo: https://github.com/cde06/splashscreen-vue-cli3-pwa
or direct access to my demo: http://test-dev-gyhi.s3-website-eu-west-1.amazonaws.com/
Then deploy the webapp on your favorite host, and open it on iphone iOS safari browser.
=> You will receive a white screen during the loading of the webapp instead of the branded assets ref in the index.html file.
What is expected?
I expect that the PWA webapp from my home screen can launch a splash screen like a native mobile app.
Like it's successfully done in this example:
https://medium.com/@applification/progressive-web-app-splash-screens-80340b45d210
This is a static example that work with a splash screen. (So Safari browser from iOS correctly support this feature)
What is actually happening?
We have a white screen during the loading of my webapp instead of our branded screen.
The text was updated successfully, but these errors were encountered: