Software Archive
Read-only legacy content
17060 Discussions

Intel XDK: How to disable Splash Screen?

ding_g_
Beginner
685 Views

I'm wrting an app with Intel XDK,but i do not konw how to disable splash screen, my app does not need it.

Help please!

0 Kudos
5 Replies
Dale_S_Intel
Employee
685 Views

What I find here says you just need this line:

<preference name="SplashScreen" value="none"/>

But that didn't quite work for me, it still appeared briefly.  I added this line as well, and it seems to work:

<preference name="SplashScreenDelay" value="0" />

You can add this to the intelxdk.config.additions.xml file.

To be safe, you might want to remove all the other SplashScreen lines (that's what I did).  And I expect you can remove the splashscreen plugin on the Plugin Management screen.

Let me know if it works for you!

Dale

 

 

0 Kudos
ding_g_
Beginner
685 Views

Thanks Dale. it works for me.
and even without remove the splashscreen plugin.
and i also set ios FadeSplashScreenDuration to zero.
<platform name="ios">
<preference name="FadeSplashScreenDuration" value="0"/>
THANK YOU again!

 

0 Kudos
Taein_K_
Beginner
685 Views

My intelxdk.config.additions.xml looks like this:

<intelxdk:plugin intelxdk:name="org.apache.cordova.inappbrowser" intelxdk:value="org.apache.cordova.inappbrowser" />
<preference name="SplashScreen" value="none"/>
<preference name="SplashScreenDelay" value="0" />
<preference name="FadeSplashScreenDuration" value="0"/>

 

but i still see cordova splash screen for some reason. This is for iOS. What am i doing wrong? I tried with and without splash plugin

 

0 Kudos
PaulF_IntelCorp
Employee
685 Views

@Taein -- do not include plugins using the additions file, it will cause problems. Use the plugin manager.

By "i still see cordova splash screen for some reason" if you mean that you see the standard XDK splash screen, then you have to change that in the Icons and Splash Screen settings. Otherwise, here's a set of options for you to experiment with:

<platform name="ios">
    <!-- below requires the splash screen plugin -->
    <!-- docs: https://github.com/apache/cordova-plugin-splashscreen -->
    <!-- <preference name="SplashScreen" value="Default" /> -->
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="FadeSplashScreen" value="false"/>
    <preference name="FadeSplashScreenDuration" value="3"/>
    <!-- <preference name="FadeSplashScreenDuration" value="3000"/> -->
    <preference name="ShowSplashScreenSpinner" value="false"/>

    <!-- below requires the status bar plugin -->
    <!-- docs: https://github.com/apache/cordova-plugin-statusbar -->
    <!-- see http://devgirl.org/2014/07/31/phonegap-developers-guid -->
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="StatusBarBackgroundColor" value="#000000" />
    <preference name="StatusBarStyle" value="lightcontent" />

    <!-- so iPhone and iPad rotate freely (CLI 5.1.1 and above) -->
    <!-- "default" means "portrait" for iPhone and "free" for iPad -->
    <preference name="Orientation" value="all" />

    <preference name="DisallowOverscroll" value="true" />
</platform>

And here are the main Cordova doc pages for those preferences:

Above doc pages assume you are using CLI 5.1.1 build option.

0 Kudos
Mauricio_C_
Beginner
685 Views
Change <preference name="AutoHideSplashScreen" value="true" />

To <preference name="AutoHideSplashScreen" value="false" />

Change <preference name="FadeSplashScreenDuration" value="3"/>

To <preference name="FadeSplashScreenDuration" value="0"/>

Enter the code IOS <preference name="SplashScreen" value="none"/>

 

0 Kudos
Reply