I can't get the splash screen images to load? It flashes white, then goes black and after a few seconds the app loads. My config.xml is as follows:
I'm building using Cordova 5.0.0 targeting Android. I have ported my app over from PhoneGap where it builds successfully and splash screen works.
config.xml
<platform name="android">
<splash src="www/images/openingscenehdpi.png" density="hdpi"/>
<splash src="www/images/openingsceneldpi.png" density="ldpi"/>
<splash src="www/images/openingscenemdpi.png" density="mdpi"/>
<splash src="www/images/openingscenexhdpi.png" density="xhdpi"/>
<preference name="android-minSdkVersion" value="14"/>
<preference name="android-targetSdkVersion" value="19"/>
<preference name="SetFullscreen" value="true"/>
<preference name="orientation" value="landscape"/>
</platform>
After reading all the other similar problems I have unsuccessfully tried the following, all resulting in no change to app behaviour:
- Only having splash elements inside tags
- Adding preference name="SplashScreen" value="screen" inside and outside platform tags
- Adding preference name="SplashScreen" value="splash" inside and outside platform tags
- Adding files direct into folders found in platforms/android/res
- Adding spashscreen javscipt into index.html
I've followed the documentation and tried others advice, now I'm totally stumped..
Can anyone help ?