-
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
RC4 - White screen on startup (Android) #9686
Comments
Have you tried to build the Release app? |
Much better ,thanks. But building for release also adds an extra step to sign the application as (AFAIK) you can't install an unsigned apk to a device. "ionic run android" was much more convenient in that sense. Anyway, if this is not a bug on ionic side, I'll try to automate release build (apk sign -> device install) with a bash script. |
You can use |
Try bumping ionic storage to 1.1.7 |
I tried with both approaches but there is no improvement, it still takes 10 seconds to load the root page, not sure... And is it required to use |
Same issue here. Any suggestion please? This is happening only with the RC4. @asa47? |
@pwespi 's suggestion |
@demirk4n |
@MT-- Yes, of course. With out that it wouldn't even build. |
@demirk4n kk, just checking! 😞 |
@MT-- Hey, no problem. Thanks for asking my fellow ionican :) |
I have the same issue. Will try with --release apk. And will report back. |
Hey guys, please make sure that this is working on your side: |
Hello Guys,
Best |
Hi, i have the same issue, i installed the splashscreen plugin and used ionic resources to generate all images but when i run on device i have a white screen some seconds and then the app appears. There is a issue with this on ionic-cli:
This is my config.xml and this my ionic info: Your system information: Cordova CLI: 6.4.0 |
Same. |
same situation :( |
Can everyone make sure they are running the latest CLI
and then make sure you are on the latest Then, compare your You should remove the android platform and add it back:
and then make sure you are using the
Please let me know if you are still having issues after this, and include a sample repository if you can. As for the longer load times, we are currently working on reducing the bundle size in order to speed up load times. cc @danbucholtz |
@danbucholtz Thanks. Works for me, if I specify a value SplashScreenDelay. But why are iOS and Android different? iOS works also with SplashScreenDelay=0 |
If i run the build with --prod i get the following output: If i run it without --prod i get a white screen for about 5 seconds. With RC3 the loading time is a lot faster than RC4. |
I have exactly the same problem. After RC4 I can't build in production :( |
@nilswieber, @jlsuarezs, can you run the same command with Thanks, |
i just get a blank white screen post splash screen when i use - ionic run android --prod. |
Hi, this is my ionic info: Your system information: Cordova CLI: 6.4.0 I am using ionic CLi 2.1.17 and app scripts 0.0.47 and updated the config.xml:
I remove/add the android platform as @brandyscarney says and run ionic build android and now i have a splashscreen that appears a few seconds then a fade effect into a blank page and after few seconds the app starts. |
Hi If I dont press OK button, I can see my app start. With rc2 (and rc3 too) the application start without problem command used: I removed the splashscreen plugin, without success (blank page) from config.xml Cordova CLI: 6.4.0 Cordova Android platform: 6.0.0 |
Sorry, wrong copy preference name="webviewbounce" value="false" |
I fixed it the following way (works on both app-scripts 0.0.47 and 0.0.48): In config.xml: removed the line In the app.component.ts: added
That should make the splashscreen duration depend on when the app is ready to show the root page, and not show the white screen. This also eliminates the need to hardcode the SplashScreenDelay value in the config. Ionic info:
|
@hayuki this is NOT a fix. This only is a poor work around. The bug still exists. You only can't see it because the splash-screen is forced to display longer |
@tobiasmuecksch Perhaps, but I personally think it is still better than increasing the SplashScreenDelay value like everybody seems to be doing after updating to app-scripts 0.0.48 |
Has anyone found a solution? |
@williancs There is a working solution. See: |
@tobiasmuecksch thanks, it worked for me 👍 |
@williancs Does it work for you without the |
@brandyscarney The issue is still present for me in ionic app scripts 1.0.0 System information: Cordova CLI: 6.4.0 It even got worse. This is what I did.
|
Can you run |
@mhartington Thank you for the reply. Jopoke_v2@ /Users/tmuecksch/Sites/jopoke/app2 |
can you paste your package.json? |
Sure. There you go:
|
it's because you have angular 2.4.2 for all the things. |
@mhartington Thank you. My bad! I will reset my package.json to the ionic-conference-app state. Anything new on the blank page issue? |
As for everyone else, please make sure you are passing the https://github.com/driftyco/ionic-app-scripts/releases/tag/v0.0.47 |
@mhartington will the |
Yes, since the flag only works in context with app-scripts. You'll way to run |
@mhartington Thank you very much! That solves the issue for me 👍 👍 👍 👍 I think this should be mentioned in the docs. |
Will add! |
I agree with @aszmyd, using the --prod flag is not a solution. @mhartington: not sure why this issue is closed. If I can't use dev builds, then I can't use livereload, and that destroys my whole workflow. I am also confused -- this seems to be a problem with the Ionic-CLI?? No matter what I do with my project or config (deleting node_modules, removing adding platforms, uninstalling reinstalling ionic, reverting to RC3, RC2, app-scripts 0.0.45, 0.0.47, 0.0.48), I can't get this problem to go away. My build process was working last night and now it is in shambles. I confirmed that the --prod flag worked at one point -- but I've gone through so many changes to config and installations that my brain is in shambles and I'm sure that my config is once again messed up beyond the state of --prod working. I even tried parachuting my code into a new project, same problem. Also note that it appears that the latest CLI (2.1.18?) will not allow you to make dev builds with earlier RC2 and 0.0.45 app scripts. Always builds prod by default. Or perhaps it is my janky setup. I wanted to add livereload on the device (not working previous to 0.0.47) so I updated to app-scripts@latest (1.0.0) with RC2, and that's when the disaster began... not sure what to do but I need to step away for a while before I fall into a deep depression... |
@marcsyp if you're still have issues, please open a new issue and clearly post the information. Long issue threads like these tend to loose focus and get derailed rather quickly. |
Usring "ionic run android --prod" generates "android-debug-unaligned.apk" which is not being signed now using "jarsigner" while apk generated with "ionic run android --release" was allowing to sign it. Do we need to sign APK generated with "ionic run android --prod"? I was following https://ionicframework.com/docs/guide/publishing.html before using "ionic run android --prod" |
my app build successfully in ionic build android --prod but it shows only white screen . |
Same issue here. The problem occurs only if I run application with --prod option. All screens are blank now. If I touch the position where an input should be shown, a cursor for typing shows up though. I am using 2.2.0 (2017-03-08) |
I fixed the problem of my polymer + cordova app, which worked on pc browser and didn't work on my android device (white screen), by changing all the absolute paths inherited from polymer code ("/bower.....") by relative paths of polymer code ("bower...).. Example: <script src="/bower_components/webcomponentsjs/webcomponents-loader.js"></script>replaced by <script src="bower_components/webcomponentsjs/webcomponents-loader.js"></script>I don't understand the reason why the first line works when I run cordova run browser but doesn't work in the apk generated by cordova build android. This has been pure luck. |
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. |
Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Ionic 2 Android application hangs with a white screen during startup. It takes 10 - 12 secs for the app to display root page after splash-page / spinner fades. This doesn't occur in browser with ionic serve.
Expected behavior:
RC3 is booting fine without any white screens following splash-page.
Steps to reproduce:
Thinking that I had an issue with my code, tested with a blank app - could produce the same issue.
$ ionic start cutePuppyPics --v2
$ cordova platform add android
$ ionic run android
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):Your system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.8
Node Version: v7.2.1
Xcode version: Not installed
The text was updated successfully, but these errors were encountered: