leonardoquevedox/capacitor-resources

Android Icon & Splash screen size went wrong

Opened this issue ยท 10 comments

Hi I'm facing the android icon scaling wrong size.
It seem fine in the generated png file, but after install to the Android devices, the icon seem scaling 1.5 times

Anyone experience this kind of issue?
It working just fine in iOS using same icon file.

I have the same problem on android.

I have the same problem on android. Has anyone found any solution?

Same problem!

Same problem. iOS works just fine, but android fails

I used cordova-res as workaround.

npm install -g cordova-res
cordova-res android --skip-config --copy

The only bad thing is, I had to resize all the splash images manually to make them fit various device screens. But I used the splash image in the format asked by capacitor-resources (2732px), so maybe that's the problem.

It's not a solution, but at least I have the icon for Android.

Credit: https://stackoverflow.com/a/66625135/6503002

But does it also copy the files into the android project? Thats why i choose to move from cordova-resources to this project

@Jo-Chris Yes it does!

ok i'll give it a try these days. Thanks

I'm still having issues with the wrong sizes too

Try : npx capacitor-resources -p android -t cover