Is config.xml required to add icons to an app?


I’m confused by the fact that a lot of documentation (including ionic) mentions adding the following to config.xml in order to have app icons:

<icon src="icons/ios/icon-72.png" width="72" height="72" />
<icon src="icons/ios/icon-72@2x.png" width="144" height="144" />

I didn’t add these to my config.xml, but I do have some icons in /Resources/icons/… and these work fine when deploying to my devices.

So my question is, in order to add icons, do we just have to put them in the correct icons directory or is there any good reason to add the entries to config.xml?

Thanks for clearing that up :slight_smile:


The config.xml approach is simple a way to automate the process a bit.

The icons that are added when you make a project are the default cordova icons. Adding the icons to the config.xml will replace the default icons during ionic prepare or ionic build.


Thank you. Ok so, is it best or even required to add them to the config.xml or is it better to just overwrite the default ones?


It all depends on your workflow.

For me, I’ve been using a script I wrote, but it requires shell.js.

I’ve used the config xml before, but it just wasn’t something I felt like dealing with.

You are not locked into using config.xml, it’s just one approach that is used.