Software Archive
Read-only legacy content
17061 Discussions

Splashscreen not working - URGENT help please

Nick_d_
Beginner
365 Views

Hey guys, my app is ready for publishing. I have one last issue, my splash-screen is not displaying at all, not during emulation or on the builds.

This is the code I'm using:

        <script>

            document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);               
            function onDeviceReady(){
                // set orientation
                intel.xdk.device.setRotateOrientation('portrait');
                intel.xdk.device.hideSplashScreen();   
            }
            //Hide status bar 
            //intel.xdk.device.hideStatusBar();
        </script>

Please help urgently. I can go live after I sort this out.

Cheers

Nick

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
365 Views

Please use the Cordova splash screen feature. Do not use the intel.xdk.device functions, they are obsolete. See the blank template or the hello-cordova sample for an example.

0 Kudos
Reply