Description
When using something like
<platform name="android"> <icon src="www/stample_icon.png" density="ldpi" /> <icon src="www/stample_icon.png" density="mdpi" /> <icon src="www/stample_icon.png" density="hdpi" /> <icon src="www/stample_icon.png" density="xhdpi" /> <splash src="www/stample_splash.png" density="land-hdpi"/> <splash src="www/stample_splash.png" density="land-ldpi"/> <splash src="www/stample_splash.png" density="land-mdpi"/> <splash src="www/stample_splash.png" density="land-xhdpi"/> <splash src="www/stample_splash.png" density="port-hdpi"/> <splash src="www/stample_splash.png" density="port-ldpi"/> <splash src="www/stample_splash.png" density="port-mdpi"/> <splash src="www/stample_splash.png" density="port-xhdpi"/> </platform>
The splash screen items are copied to their respestive android folders:
copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-land-hdpi/screen.png copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-land-ldpi/screen.png copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-land-mdpi/screen.png copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-land-xhdpi/screen.png copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-port-hdpi/screen.png copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-port-ldpi/screen.png copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-port-mdpi/screen.png copying image from /home/sebastien/Desktop/Stample-react/cordova/www/stample_splash.png to /home/sebastien/Desktop/Stample-react/cordova/platforms/android/res/drawable-port-xhdpi/screen.png
They are always copied with the name "screen.png"
If we don't use the option
<preference name="SplashScreen" value="screen" />
Then the splash screen we declare in the xml is simply ignored. The value must be = "screen".
I think this should be documented, or better: be made the default behavior when a splash screen is declared.
Attachments
Issue Links
- Blocked
-
CB-10688 Cordova Plugin Splashscreen Readme must have examples
- Closed