this makes the splash screen load (it stays there all the time)
later when the app is done loading (cold start), we control the splash screen by hiding it…
//app.component.ts
constructor(
public platform:Platform,
public statusBar: StatusBar,
public splashScreen: SplashScreen
) {
//When the platform is ready, we run some codes. (Hide the splash page)
this.platform.ready().then(
() => {
this.statusBar.styleDefault();
this.splashScreen.hide(); // control to hide the splashScreen yo!
}
)
.catch(
err => console.log("error: platform.ready()")
);
}
then build then run your app again.
$ ionic cordova build android
$ ionic cordova run android