-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Long-Time White-Screen displays everytime app starts, and it's confusing !! :\ #14419
Comments
I have not seen an app have a white screen BEFORE the splash screen. I assume your config.xml has the normal splash screen settings? |
You could start new project by running |
@tomavic - I have not seen that either and I have several test apps built in a similar fashion as to what you have stated in your above comment just due to testing things. What I have noticed with regard to this is that on some cheaper Android devices there will be a period of a grey screen between the splash and the app, but never before the splash. Here is a link showing what I see when launching an Ionic app from my phone: https://drive.google.com/file/d/1-D79urp1Gfhtruxr7RQ8x-mF7Rcr3Dc2/view?usp=sharing I launch the app around second 2 and it goes immediately to the splash screen, after which it goes right into the app. Could you perhaps share a GitHub repo to an app that exhibits the behavior you are talking about? Perhaps there is a difference between how I built it and you built it? The build I have is not a production build (which if anything should make any performance issue worse) and is side-loaded on the device from Xcode. |
Hi @kensodemann Thanks for your comment and the video. What I am talking about exactly happens in Android Devices (even the cheaper one which have android less than 4.2, which Ionic 3.x doesn't support and I have to use cross-walk to build the app). What happens is a White screen lasts for 5 sec After splash and not before it. There is nothing special about the apk itself. I run Please checkout this video: My android device is OPPO 5.1.1 |
What setting do you have in your config.xml file for when you do a build like you are doing its for dev, and so angular builts it with the JIT compiling (https://scotch.io/@kashyapmukkamala/jit-vs-aot-in-angular2-and-how-to-use-it) The app is bigger and slower. Once this fires it hides the splash screen. This would wait up to 12 seconds because that is the value in the config.xml I pasted above. Recap. The app loads, the default wait time for the splash screen is 12 seconds, if the app takes longer then that you would just see a white screen. |
|
@newuser44 please check the splash configurations, and let me know |
Up your SplashScreenDelay time and see what happens. |
@newuser44 I had increased splash screen delay time to be 6000, and the white screen is not visible anymore. 👍 💯 But the problem is -and that what I meant in first place- the device take too much time to be ready, and I hope Ionic team will take care of this in the next Major release to decrease that time |
This is part of Angular. It has two ways of compiling code, JIT or AOT, I think I posted a link to this above. If you build your code with --prod, it switched over to AOT and the load time is WAY quicker. This is how your should build release anyways. We went through the same thing. Our android app did not have a splash screen before, moved over to Ionic, started to see how long the Dev build was, ended up adding the splash screen. With the dev build it was close to 18 seconds to load, with the --prod build (AOT) its just under 4 seconds. |
Thanks for that. It would be nice if this point added into documentations, explaining how to build for release and why🥇 |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Since Ionic 2 rise up, and with releasing Ionic 3, I noticed after building the app to Android or iOS and installing it on device properly, I found that there is a White screen showing up for like 4 or 6 seconds, then comes the splash screen and the rest of the app.
It's been so hard for me to convince the clients that they have to accept the app as it is, although that issue was NOT exists in Ionic 1.x !!
Previously, In Ionic 1.x when you start plain project form scratch and build it (for example Android), installing it to device, and If you open it you will meet the splash screen then the rest of the app etc...
and that was Awesome
Please could you look into this and take care of it in Ionic 4.x series ASAP :)
Ionic version:
[ ] 2.x
[*] 3.x
[ ] 4.x
I'm submitting a ... actually I don't know if it's really an issue need to be fixed, or a feature to be requested !
[] bug report
[ ] feature request
Current behavior:
White screen showing up after opening the apk, for like 3-6 seconds
Expected behavior:
NOT displaying that white screen, or at least decreasing it's time to be less than 1000ms and not more than that. That would be the worst case btw
Other information:
Even using CrossWalk doesn't make any difference
Ionic info:
The text was updated successfully, but these errors were encountered: