ionic-capacitor-icon-splash-resource-generate

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 NameSize
icon.png1024px (w) x 1024px (h)
splash.png2732px (w) x 2732px (h)
icon-foreground432px (w) x 432px (h)
icon-background432px (w) x 432px (h)

Now place the images in your project main folder as i shown below

Next, run the following to generate icons and splash

cordova-res ios --skip-config --copy
cordova-res android --skip-config --copy

Leave a Reply

Your email address will not be published. Required fields are marked *