0

I want to customize splash screen of my cordova project. Here is my inserted code in config.xml file to change splash screen

<preference name = "SplashScreen" value = "screen" />
<preference name = "SplashScreenDelay" value = "3000" />
<preference name = "SplashMaintainAspectRatio" value = "true" />
<splash src="/HelloworldProject/splashimages/splash.png"platform="android"  width="720" height="1280" />

I can't see any changes when i run my app.Any help here?

Rex Nihilo
  • 604
  • 2
  • 7
  • 16
Mansuu....
  • 1,206
  • 14
  • 27

1 Answers1

0

Try these suggestions out:

  1. Looks like there should be a space before platform.
  2. The SplashScreen preference should have the value of that src file; not screen

Try this out specifically (modelled after cordova apache docs):

<preference name="SplashScreen" value="/HelloworldProject/splashimages/splash.png" /> <!-- defaults to "/img/logo.png" -->
<preference name="SplashScreenDelay" value="3000" /> <!-- defaults to "3000" -->
<preference name = "SplashMaintainAspectRatio" value = "true" />
<splash src="/HelloworldProject/splashimages/splash.png" width="720" height="1280" />

If you want, you could put the splash tag within a platform tag with name="android":

<platform name="android">
        <splash density="land-ldpi" src="/HelloworldProject/splashimages/splash.png" />
</platform>
bozdoz
  • 12,550
  • 7
  • 67
  • 96