android - Cordova 5.1.1 Splashscreen not working -
i trying splashscreen work on android device (redmi 1s, android version 4.4.4 ktu84p). app runs fine on device, splashscreen not appear. splashscreen images gets copied , renamed "screen.png" respective "platforms\android\res\drawable*" directories. have not installed splashscreen plugin cordova. below content config.xml @ project root directory.
<?xml version='1.0' encoding='utf-8'?> <widget id="com.victor.workshop" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>workshop</name> <description> sample apache cordova application responds deviceready event. </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> apache cordova team </author> <content src="index.html" /> <plugin name="cordova-plugin-whitelist" version="1" /> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="market:*" /> <icon src="res/android/icons/xhdpi.png"/> <icon src="res/android/icons/ldpi.png" density="ldpi" /> <icon src="res/android/icons/mdpi.png" density="mdpi" /> <icon src="res/android/icons/hdpi.png" density="hdpi" /> <icon src="res/android/icons/xhdpi.png" density="xhdpi" /> <splash src="res/android/splashscreens/land-hdpi.png" density="land-hdpi"/> <splash src="res/android/splashscreens/land-ldpi.png" density="land-ldpi"/> <splash src="res/android/splashscreens/land-mdpi.png" density="land-mdpi"/> <splash src="res/android/splashscreens/land-xhdpi.png" density="land-xhdpi"/> <splash src="res/android/splashscreens/port-hdpi.png" density="port-hdpi"/> <splash src="res/android/splashscreens/port-ldpi.png" density="port-ldpi"/> <splash src="res/android/splashscreens/port-mdpi.png" density="port-mdpi"/> <splash src="res/android/splashscreens/port-xhdpi.png" density="port-xhdpi"/> </platform> <preference name="splashscreen" value="screen" /> <preference name="splashscreendelay" value="10000" /> </widget> any or pointer appreciated. in advance.
the splash screen plugin required since cordova android 4.0 show splash screen
major changes
splash screen functionality provided via plugin
you need add new cordova-plugin-splashscreen plugin continue using splash screen
https://cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html
so, install
cordova plugin add cordova-plugin-splashscreen and should work after that
Comments
Post a Comment