Reputation: 61
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:
phonegap local build
rather than grunt platform-build
.<gap:splash src="www/res/screen/android/drawable-land-hdpi/splash.png" gap:platform="android" gap:qualifier="land-hdpi" />
If anybody has any suggestions, I'd love to hear them. Thanks!
Upvotes: 3
Views: 2178
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
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
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