Skip to content

Instantly share code, notes, and snippets.

@marcelosantos
Last active May 5, 2017 16:05
Show Gist options
  • Save marcelosantos/406c392659f60e592df008867e1cc1bd to your computer and use it in GitHub Desktop.
Save marcelosantos/406c392659f60e592df008867e1cc1bd to your computer and use it in GitHub Desktop.
Tip for ionic splash screen time

This is a workaround for issue with the white screen:

In config.xml file I have set:

preference name="SplashScreenDelay" value="20000"
preference name="SplashShowOnlyFirstTime" value="false" 
preference name="AutoHideSplashScreen" value="false"

In platform.ready() I have:

import { Splashscreen } from 'ionic-native';
// ...
    setTimeout(() => {
        Splashscreen.hide();
    }, 1000);
// ...

This just shows the splash screen until you hide it in platform.ready().

Hope it helps somebody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment