[SOLVED] How to reduce the time for the splash screen on android?

Hello,

I have an apk generated with meteor build.
How can I reduce the time for the splash screen? It should be shorter, it does not really load anything until the user interacts with the UI.

Thanks,

<preference name="splashScreenDelay" value="10000" />

this value in the config.xml will configure how long the splash screen appears for

App.setPreference('splashScreenDelay', '10000');

so something like that in mobile-config.js should work

this may have the default value in it
https://cordova.apache.org/docs/en/3.1.0/cordova/splashscreen/splashscreen.html

the value is in milliseconds, so the example value i gave is 10 seconds. prob longer than you want.

1 Like

Thanks, do you know what is the default value? or where I can take a look to find out?

sorry the link i gave was outdated

SplashScreenDelay (number, default to 3000). Amount of time in milliseconds to wait before automatically hide splash screen.

this one is better
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/index.html

1 Like

Thanks a lot for your help.

1 Like

You could also hide the splashscreen after your data is loaded. That way you get an optimal time and don’t risk showing unpopulated screens.