ionic-team / capacitor-assets

Local Capacitor icon/splash screen resource generation tool
MIT License
512 stars 101 forks source link

iOS: Icon background don't show #519

Open JEricaM opened 1 year ago

JEricaM commented 1 year ago

Hi to everyone

I'm using the Usage - Custom Mode to generate icon and splash screen. https://github.com/ionic-team/capacitor-assets#usage---custom-mode

On iOS I don't see the generated background icon but the default capacitor one. Obviously I've provived all the needed files inside the resources folder.

Capacitor version: "@capacitor/core": "^5.0.0" @capacitor/ios -> "5.0.2" @capacitor/assets -> "2.0.4"

My ios device is an iPhoneSE with iOS 16

leonardodimarchi commented 1 year ago

I believe i'm experiencing the same issue.

When i add an icon-background.png file with a colored background, it always generate it with a white background (only on IOS).

It seems like the default background color (#FFFFFF) is being used.

As workaround i'm using the --iconBackgroundColor argument to set a solid background color.

javialon26 commented 9 months ago

Same issue here

elson-currentcorp commented 3 months ago

Maybe I'm wrong, but there is a lack of examples and documentation explaining how each of the icon types in Custom Mode is supposed to be used.

My guess is that icon-foreground and icon-background are used only for the Android build: https://developer.android.com/develop/ui/views/launch/icon_design_adaptive

Running the generator with the --ios flag doesn't seem to use those two icons at all. It only uses icon-only which leads me to guess that the icon-only image should be exported with the background already.