Animated Splash Screen Plugin
Based on cordova-custom-config plugin and cordova-plugin-splashscreen
// npm hosted (new) id cordova plugin add cordova-plugin-animated-splashscreen
// you may also install directly from this repo cordova plugin add https://github.com/kitolog/cordova-plugin-animated-splashscreen
Duration in seconds
<preference name="AnimatedSplashScreenAnimationDuration" value="5" />
Disable original splashscreen plugin, it's not needed
<preference name="SplashScreen" value="none" />
Repeat count
0 - no repeat
<preference name="AnimatedSplashScreenAnimationRepeatCount" value="0" />
IOS Images Order:
<preference name="AnimatedSplashScreenIosImages" value="animated-1.png,animated-2.png,animated-3.png,animated-4.png,animated-5.png" />
...
IOS Images paths:
<platform name="ios">
...
<custom-resource catalog="animated-1" idiom="universal" scale="1x" src="https://github.com/kitolog/cordova-plugin-animated-splashscreen/raw/master/resources/ios/splash/animated-1.png" type="image" />
<custom-resource catalog="animated-2" idiom="universal" scale="1x" src="https://github.com/kitolog/cordova-plugin-animated-splashscreen/raw/master/resources/ios/splash/animated-2.png" type="image" />
...</platform>
`
Android Images Order:
<preference name="AnimatedSplashScreenAndroidImages" value="animated1,animated2,animated3,animated4,animated5" />
...
Android Images paths:
<platform name="android">
...
<resource-file src="https://github.com/kitolog/cordova-plugin-animated-splashscreen/raw/master/resources/android/splash/animated-1.png" target="app/src/main/res/drawable-port-xxxhdpi/animated1.png" />
<resource-file src="https://github.com/kitolog/cordova-plugin-animated-splashscreen/raw/master/resources/android/splash/animated-2.png" target="app/src/main/res/drawable-port-xxxhdpi/animated2.png" />
...</platform>
(in example code, image has 1920 x 1280 px size, so it should be placed to drawable-port-xxxhdpi)
LDPI:
MDPI:
HDPI:
XHDPI:
XXHDPI:
XXXHDPI:
Appelian, 2015