Hi viewers, In this tutorial i will show you how to add App Icon and Splash Screen in your ionic mobile app.
First, install cordova-res
:
npm install -g cordova-res
Requirements
Image Name | Size |
icon.png | 1024px (w) x 1024px (h) |
splash.png | 2732px (w) x 2732px (h) |
icon-foreground | 432px (w) x 432px (h) |
icon-background | 432px (w) x 432px (h) |
Now place the images in your project main folder as i shown below
![](https://i0.wp.com/linuxquery.com/wp-content/uploads/2022/05/ionic-capacitor-resource-generate-path-linuxquery.png?resize=640%2C134&ssl=1)
Next, run the following to generate icons and splash
cordova-res ios --skip-config --copy
cordova-res android --skip-config --copy