When I “run android”, the app shows my splascreen when it gets started by ionic.
Once installed on the device, I get a black screen at start.
I had ‘ionic resources’, all the screens are in the android/res folder.
Here is my config.xml :
<feature name="Device"> <param name="android-package" value="org.apache.cordova.device.Device" /> </feature> <feature name="SplashScreen"> <param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" /> <param name="onload" value="true" /> </feature> <feature name="StatusBar"> <param name="android-package" value="org.apache.cordova.statusbar.StatusBar" /> <param name="onload" value="true" /> </feature> <feature name="Whitelist"> <param name="android-package" value="org.apache.cordova.whitelist.WhitelistPlugin" /> <param name="onload" value="true" /> </feature> <feature name="Keyboard"> <param name="android-package" value="io.ionic.keyboard.IonicKeyboard" /> <param name="onload" value="true" /> </feature> <name>rcc</name> <description>An awesome Ionic/Cordova app.</description> <author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author> <content src="index.html" /> <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:*" /> <icon src="resources\android\icon\drawable-xhdpi-icon.png" /> <allow-intent href="market:*" /> <icon density="ldpi" src="resources\android\icon\drawable-ldpi-icon.png" /> <icon density="mdpi" src="resources\android\icon\drawable-mdpi-icon.png" /> <icon density="hdpi" src="resources\android\icon\drawable-hdpi-icon.png" /> <icon density="xhdpi" src="resources\android\icon\drawable-xhdpi-icon.png" /> <icon density="xxhdpi" src="resources\android\icon\drawable-xxhdpi-icon.png" /> <icon density="xxxhdpi" src="resources\android\icon\drawable-xxxhdpi-icon.png" /> <splash density="land-ldpi" src="resources\android\splash\drawable-land-ldpi-screen.png" /> <splash density="land-mdpi" src="resources\android\splash\drawable-land-mdpi-screen.png" /> <splash density="land-hdpi" src="resources\android\splash\drawable-land-hdpi-screen.png" /> <splash density="land-xhdpi" src="resources\android\splash\drawable-land-xhdpi-screen.png" /> <splash density="land-xxhdpi" src="resources\android\splash\drawable-land-xxhdpi-screen.png" /> <splash density="land-xxxhdpi" src="resources\android\splash\drawable-land-xxxhdpi-screen.png" /> <splash density="port-ldpi" src="resources\android\splash\drawable-port-ldpi-screen.png" /> <splash density="port-mdpi" src="resources\android\splash\drawable-port-mdpi-screen.png" /> <splash density="port-hdpi" src="resources\android\splash\drawable-port-hdpi-screen.png" /> <splash density="port-xhdpi" src="resources\android\splash\drawable-port-xhdpi-screen.png" /> <splash density="port-xxhdpi" src="resources\android\splash\drawable-port-xxhdpi-screen.png" /> <splash density="port-xxxhdpi" src="resources\android\splash\drawable-port-xxxhdpi-screen.png" /> <preference name="loglevel" value="DEBUG" /> <preference name="webviewbounce" value="false" /> <preference name="UIWebViewBounce" value="false" /> <preference name="DisallowOverscroll" value="true" /> <preference name="android-minSdkVersion" value="16" /> <preference name="BackupWebStorage" value="none" /> <preference name="SplashMaintainAspectRatio" value="true" /> <preference name="FadeSplashScreenDuration" value="300" /> <preference name="SplashScreen" value="screen" /> <preference name="SplashScreenDelay" value="3000" />
What I can’t understand is why the spashscreen shows just once?