I can't reduce the SplashScreen Time

I tried everything… Changing in the xml, in app.module.ts, but nothing works, the program always takes about 10s loading…

I don’t know what to do

This is my config:

    <preference name="FadeSplashScreenDuration" value="100" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="SplashScreenDelay" value="2000" />
    <preference name="AutoHideSplashScreen" value="false" />
    <preference name="FadeSplashScreen" value="true" />
    <preference name="ShowSplashScreenSpinner" value="false" />

In app.component.ts

    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.

      // statusBar.styleDefault();

      setTimeout(() => {
      }, 100);

How are you building?
What is your ionic info output?

I’m building with Ionic cordova run android.

I’ve installed Android Studio and build with his Sdk, tested in two differents pc’s and three devices, with the last versions of Ionic.

Doesn’t works… Can you give me some information about other builds who works?

Could it be that your app isnt all the way staged/loaded before that 10 seconds?

No, because this happens to me in other projects (even the ionic templates) and if i opens the chrome inspector device i can see the application ready but in device the splashscreen stills loading. It’s annoying

How about trying ionic cordova run android --prod to make an optimized production build?

1 Like

Yes i tried that. Please can you give some example of a reduced splashscreen config?

Its in your config file right?

  <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />

I believe SplashScreenDelay is the value you want to change. On top of that you need the --release build.

Also, see : https://github.com/ionic-team/ionic2-app-base/pull/158

1 Like

I change that values and make the app prod and it works!! So this is solved for me

1 Like