I have an Ionic project with Android platform using Cordova. I want to set an icon and Splash screen in the project. For icon I have made a directory and added logo that will show.
res\android\pkLogo.png
Also added this line into my config.xml
<icon src="res/android/pkLogo.png" platform="android" width="57" height="57" density="mdpi" />
But the problem is Apache default icon is showing. What I have done wrong I took help from here cordova
I want to show splash screen, how it is possible? I searched a lot, found some links but I am solve it.
How to set Icon and splash screen in android using ionic\cordova
Run ionic cordova resources
from CLI
After that following folder will be created
resources > android
resources > ios
Add icon.png
and splash.png
file in resource folder and run ionic cordova resources
command again. Or you can just run ionic cordova run <platform>
and it will generate the resource files for that platform (ios, android, etc).
It will create icon and splash screen automatically and also add in config.xml file. Nothing to do manully. Ionic will do everything automatically for you.