How to avoid the white screen when loading initially in ionic apps

How can i hide the inital loading when i was running on the android device

  1. Use --prod to build
  2. Do less during startup (imports, constructors, non-lazy-loadded pages)

5 posts were split to a new topic: Animated splash screen SplashPage shows Homepage first

How to do that as you mentioned less during startup i cant understand your suggesstions?

When exactly do you see the white screen?
Did you build with --prod?
How are you testing?
Also post your ionic info output please.

cli packages: (C:\Users\Admin\sample_locationAccuracy\node_modules)

@ionic/cli-plugin-cordova       : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.0

System:

Node : v8.1.4
OS   : Windows 10
npm  : 5.0.3

how to avoid the white screen is there any other way to use preference

Reply to my other 2 questions please.

What do you mean by that?

No thanks @Sujan12 I found an answer

Please share the solution with us.