# Ios: Defaults.xml not overwritten (Splashscreen)

**URL:** <https://forum.ionicframework.com/t/ios-defaults-xml-not-overwritten-splashscreen/17852>\
**Category:** ionic-v1\
**Created:** [February 18, 2015, 11:37pm UTC](https://forum.ionicframework.com/t/ios-defaults-xml-not-overwritten-splashscreen/17852 "2015-02-18T23:37:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ched](https://avatars.discourse-cdn.com/v4/letter/c/b5e925/32.png) [@ched](https://forum.ionicframework.com/u/ched)\
**Post date:** [February 18, 2015, 11:37pm UTC](https://forum.ionicframework.com/t/ios-defaults-xml-not-overwritten-splashscreen/17852/1 "2015-02-18T23:37:07Z")

</div>

I’m trying to manually set the time until the splashscreen disappears (for Android and iOS). There is [this formula](http://learn.ionicframework.com/formulas/splash-screen/) and a [thread](http://forum.ionicframework.com/t/how-to-create-a-splash-screen/11438/16) that describes how to achieve that.

I installed the cordova splash plugin,  
removed all platforms,  
added all platforms again and my config.xml looks like this

```
  <preference name="SplashScreen" value="screen"/>
  <preference name="ShowSplashScreenSpinner" value="false" />
  <preference name="SplashScreenDelay" value="10000" />
  <preference name="AutoHideSplashScreen" value="false"/>.

```

I even added custom code in the app.js after installing and injecting ng-module:

```
$ionicPlatform.ready(function() {
    $timeout(function() {
	$cordovaSplashscreen.hide();
    }, 5000, false);
});

```

It doesn’t work though, the splashscreen is just shown for a very short time. I assume it has something to do with the fact that

```
platforms/ios/cordova/defaults.xml

```

doesn’t seem to be overwritten according to what I specified in the config.xml.

My defaults.xml:

```
    <preference name="FadeSplashScreen" value="true" />
    <preference name="FadeSplashScreenDuration" value=".25" />

```

Any hint what I could do wrong here?

---

<div class="post-metadata">

**Author:** ![ched](https://avatars.discourse-cdn.com/v4/letter/c/b5e925/32.png) [@ched](https://forum.ionicframework.com/u/ched)\
**Post date:** [February 21, 2015, 1:44pm UTC](https://forum.ionicframework.com/t/ios-defaults-xml-not-overwritten-splashscreen/17852/2 "2015-02-21T13:44:44Z")

</div>

No one that could help me here? ☹

---

<div class="post-metadata">

**Author:** ![drakee510](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/drakee510/32/68082_2.png) [@drakee510](https://forum.ionicframework.com/u/drakee510)\
**Post date:** [February 22, 2015, 6:14am UTC](https://forum.ionicframework.com/t/ios-defaults-xml-not-overwritten-splashscreen/17852/3 "2015-02-22T06:14:16Z")

</div>

Have you tried creating a new ionic project and tested it on there? In my experience sometimes Cordova plugins can act a little funny
