Phonegap (Android Build) - Intermediate Screen before Splash Screen

Hartman- picture Hartman- · Sep 14, 2013 · Viewed 7k times · Source

When I first launched my app, built using build.phonegap.com and then distributed to my Nexus 7 (running Jelly Bean 4.3), I see a black screen with a gray title bar at the top. Is this normal, or is there a setting I need to enable/disable? I can say that this build was a debug build (I don't know why, but when I checked again the setting was checked).

I'll be glad to provide any insights needed to help, thanks! I can also link the github repo that houses my code if that is helpful.

There's an image:

image

EDIT2: This also happens after clearing the app from the apps running the in background.

Answer

Dom picture Dom · Sep 16, 2013

Does your app eventually show or does it just stay blank? Cant really tell what is going on but a quick something came to mind. Are you using a splash screen? Take a look at the config.xml docs at the section about splash screen duration (Android only). The docs can be found here.

Splash Screen Duration

  • splash-screen-duration with a value in milliseconds
  • defaults to 5000 (5 seconds)
  • example: <preference name="splash-screen-duration" value="10000" />
  • for auto-hide behaviour call navigator.splashscreen.hide(); in the device-ready method
  • supported on PhoneGap 2.1.0 and above

Try setting the duration to 0 (<preference name="splash-screen-duration" value="0" />) and see what happens.

*On second thought, it probably isn't a splash screen issue but worth a shot. Post some code of what your app is doing (or share github as suggested) and I will see what I can do.