# Config.xml

**URL:** <https://forum.ionicframework.com/t/config-xml/12851>\
**Category:** ionic-v1\
**Created:** [November 18, 2014, 10:27am UTC](https://forum.ionicframework.com/t/config-xml/12851 "2014-11-18T10:27:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bappyiub](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bappyiub](https://forum.ionicframework.com/u/bappyiub)\
**Post date:** [November 18, 2014, 10:27am UTC](https://forum.ionicframework.com/t/config-xml/12851/1 "2014-11-18T10:27:13Z")

</div>

Hi,  
I have used config.xml to configure my app.

```auto
    <preference name="AutoHideSplashScreen" value="true" />
        <preference name="BackupWebStorage" value="cloud" />
        <preference name="DisallowOverscroll" value="false" />
        <preference name="EnableViewportScale" value="false" />
        <preference name="FadeSplashScreen" value="true" />
        <preference name="FadeSplashScreenDuration" value=".25" />
        <preference name="KeyboardDisplayRequiresUserAction" value="true" />
        <preference name="MediaPlaybackRequiresUserAction" value="false" />
        <preference name="ShowSplashScreenSpinner" value="true" />
        <preference name="SuppressesIncrementalRendering" value="false" />
        <preference name="TopActivityIndicator" value="gray" />
        <preference name="GapBetweenPages" value="0" />
        <preference name="PageLength" value="0" />
        <preference name="PaginationBreakingMode" value="page" />
        <preference name="PaginationMode" value="unpaginated" />

```

But it has no effect on the code.  
could any body tell me please.  
why cordova config.xml does not work on ionic ?

---

<div class="post-metadata">

**Author:** ![edd](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@edd](https://forum.ionicframework.com/u/edd)\
**Post date:** [November 18, 2014, 11:22am UTC](https://forum.ionicframework.com/t/config-xml/12851/2 "2014-11-18T11:22:16Z")

</div>

I think you will need to provide more details. What exactly is not working?

---

<div class="post-metadata">

**Author:** ![zaher](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/zaher/32/67304_2.png) [@zaher](https://forum.ionicframework.com/u/zaher)\
**Post date:** [November 19, 2014, 8:02am UTC](https://forum.ionicframework.com/t/config-xml/12851/3 "2014-11-19T08:02:53Z")

</div>

and also provide us of how you test it and does you test it on Android or iOS, remember the more information you give the better help you get.

also is this the main config.xml file or its specific to Android, iOS … etc.

---

<div class="post-metadata">

**Author:** ![bappyiub](https://avatars.discourse-cdn.com/v4/letter/b/e480ec/32.png) [@bappyiub](https://forum.ionicframework.com/u/bappyiub)\
**Post date:** [November 20, 2014, 7:44am UTC](https://forum.ionicframework.com/t/config-xml/12851/4 "2014-11-20T07:44:09Z")

</div>

Yes, this is the main config.xml .  
I made TopActivityIndicator to gray but is not converting to.  
after made the main config.xml i use this command. “ionic build iOS”

---

<div class="post-metadata">

**Author:** ![zaher](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/zaher/32/67304_2.png) [@zaher](https://forum.ionicframework.com/u/zaher)\
**Post date:** [November 20, 2014, 8:20pm UTC](https://forum.ionicframework.com/t/config-xml/12851/5 "2014-11-20T20:20:07Z")

</div>

I think you are doing it wrong, the main config.xml should only have the options which belongs to all the platforms, so here you have 2 options :  
1- to add your options to the iOS config.xml file ( [http://cordova.apache.org/docs/en/4.0.0/config\_ref\_index.md.html#The%20config.xml%20File](http://cordova.apache.org/docs/en/4.0.0/config_ref_index.md.html#The%20config.xml%20File) ).  
2- to wrap your config preference which belongs to iOS inside the platform tag for example :

```
<platform name="android">
    <preference name="Fullscreen" value="true" />
</platform>

```

the above code will only work for android, you should check the others for iOS.

hopefuly this will help
