


It is regarding adaptive icons that are supported as well.

If specified, obviously, it will perform only for the requested platform.Īs I mentioned, people usually rushes through the documentation searching the topics and misses the small important points, which may cause the issue below:īut it is also in the documentation. If none is stated, it will place in all available platforms.
ANDROID STUDIO ICON GENERATOR INSTALL
Step 1: Add the cordova res ( check the documentation in case of doubts) $ npm install -g cordova-res Not different from what has been stated in here so far and also in the documentation.
ANDROID STUDIO ICON GENERATOR HOW TO
Let's go through it in details (it is also in the documentation but people usually ignore this part) How to generate it Then in your package.json file under scripts add: "resources": "capacitor-resources -p android,ios & node resources.js",įunction copyImages(sourcePath, targetPath, images) ĬopyImages(SOURCE_ANDROID_ICON, TARGET_ANDROID_ICON, ANDROID_ICONS) ĬopyImages(SOURCE_ANDROID_SPLASH, TARGET_ANDROID_SPLASH, ANDROID_SPLASHES) Īll of the answers are correct but not regarding the issue that came since ionic 4 in late patches and remains until now, which is the generated resources not being copied in the android folder. I solved this by using capacitor-resources and this script below.
