curiousgage
curiousgage

Reputation: 61

PhoneGap build android splash screen not working

I'm having a couple of issues with the Android splash screen using PhoneGap 3.5.0. When I do a build, I'm seeing some weird results with the splash screen files in platforms/android/res:

The second issue is that despite splash images being in the folders, when I test the app I see a black screen rather than either my custom splash screens or a default PhoneGap splash screen.

I've found several articles around this issue, but none of the fixes worked for me. Some of the things I've tried included:

A few other notes:

If anybody has any suggestions, I'd love to hear them. Thanks!

Upvotes: 3

Views: 2178

Answers (3)

sparkholiday
sparkholiday

Reputation: 82

I tried everything, and then I figured to ignore the minimum size and make my splash.png image in my resources folder 5000px by 3000px. Then it worked. So: If all else fails, try making the splash image ENORMOUS.

Upvotes: 0

bomblike
bomblike

Reputation: 168

In the config.xml add the following keys:

<feature name="SplashScreen">
  <param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
</feature>
<preference name="ShowSplashScreen" value="true" />
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<preference name="AutoHideSplashScreen" value="true" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="FadeSplashScreen" value="false"/>

Upvotes: 0

dems54
dems54

Reputation: 21

If that can help you when I used qualifier instead of density, if I want that the Splash Screen work I have to configure :

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

instead of

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

Upvotes: 1

Related Questions