Hi,
I am deploying .apk file on android device. Splash screen is being appeared. How to hide it ?
I am using ionic 3.2 with cordova 8.0.0
This is what I have done to hide it but failed.
- In config.xml file I have set the preferences as
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="FadeSplashScreen" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="ShowSplashScreen" value="true" />
- In app.components.ts file I have added the following in constructor
platform.ready().then(() => {
//splashScreen.hide();
if (this.splashScreen) {
setTimeout(() => {
this.splashScreen.hide();
}, 500);
}
statusBar.styleDefault();
});
Please help me. What to do to hide Splash Screen ?