You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Vincent Wong <vi...@mhelpdesk.com> on 2012/10/30 03:59:17 UTC

Cordova 2.1 shows the wrong splash screen for a split second

I have updated all my splash screens to show my own. I also
set AutoHideSplashScreen to false. I've added:

 document.addEventListener("deviceready", onDeviceReady, false);



         function onDeviceReady() {

             //console.log("We got device ready");

             //cordova.exec(null, null, "SplashScreen", "hide", []);

             // Soon to be

              navigator.splashscreen.hide();

         }


The correct splash screen shows for 1 second. The the default Cordova
splash shows for another second before my app is loaded.

How do I prevent the default Cordova splash from showing?

Re: Cordova 2.1 shows the wrong splash screen for a split second

Posted by Becky Gibson <gi...@gmail.com>.
FYI - you usually have to delete and reinstall the app after you make
changes to the splash screen.

-becky

On Tue, Oct 30, 2012 at 9:36 AM, Andrew Grieve <ag...@chromium.org> wrote:

> Hi Vincent,
>
> What platform(s) do you see this happening on? We should file a bug for
> this.
>
>
> On Mon, Oct 29, 2012 at 10:59 PM, Vincent Wong <vincent@mhelpdesk.com
> >wrote:
>
> > I have updated all my splash screens to show my own. I also
> > set AutoHideSplashScreen to false. I've added:
> >
> >  document.addEventListener("deviceready", onDeviceReady, false);
> >
> >
> >
> >          function onDeviceReady() {
> >
> >              //console.log("We got device ready");
> >
> >              //cordova.exec(null, null, "SplashScreen", "hide", []);
> >
> >              // Soon to be
> >
> >               navigator.splashscreen.hide();
> >
> >          }
> >
> >
> > The correct splash screen shows for 1 second. The the default Cordova
> > splash shows for another second before my app is loaded.
> >
> > How do I prevent the default Cordova splash from showing?
> >
>

Re: Cordova 2.1 shows the wrong splash screen for a split second

Posted by Andrew Grieve <ag...@chromium.org>.
Hi Vincent,

What platform(s) do you see this happening on? We should file a bug for
this.


On Mon, Oct 29, 2012 at 10:59 PM, Vincent Wong <vi...@mhelpdesk.com>wrote:

> I have updated all my splash screens to show my own. I also
> set AutoHideSplashScreen to false. I've added:
>
>  document.addEventListener("deviceready", onDeviceReady, false);
>
>
>
>          function onDeviceReady() {
>
>              //console.log("We got device ready");
>
>              //cordova.exec(null, null, "SplashScreen", "hide", []);
>
>              // Soon to be
>
>               navigator.splashscreen.hide();
>
>          }
>
>
> The correct splash screen shows for 1 second. The the default Cordova
> splash shows for another second before my app is loaded.
>
> How do I prevent the default Cordova splash from showing?
>

Re: Cordova 2.1 shows the wrong splash screen for a split second

Posted by Shazron <sh...@gmail.com>.
This is usually a configuration error. Please file an issue with
environment information, and perhaps attach a repro in the form of a
sample project. File it at http://issues.cordova.io

On Mon, Oct 29, 2012 at 7:59 PM, Vincent Wong <vi...@mhelpdesk.com> wrote:
> I have updated all my splash screens to show my own. I also
> set AutoHideSplashScreen to false. I've added:
>
>  document.addEventListener("deviceready", onDeviceReady, false);
>
>
>
>          function onDeviceReady() {
>
>              //console.log("We got device ready");
>
>              //cordova.exec(null, null, "SplashScreen", "hide", []);
>
>              // Soon to be
>
>               navigator.splashscreen.hide();
>
>          }
>
>
> The correct splash screen shows for 1 second. The the default Cordova
> splash shows for another second before my app is loaded.
>
> How do I prevent the default Cordova splash from showing?