bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Allow using a different image from `iconUrl` for the Splash Screen

Open andreban opened this issue 5 years ago • 6 comments

Bubblewrap uses the icon provided in the Web Manifest to generate both the launcher icons and the splash screen image, in a similar ways that installed PWAs do.

In some cases, developers may want to use an image for the splash screen that is different from the image provided in the Web Manifest and from the launcher icon. See https://github.com/GoogleChromeLabs/bubblewrap/issues/214 for an example.

andreban avatar Jul 06 '20 09:07 andreban

Any updates in this one ?

rajorpratyush avatar Sep 19 '20 05:09 rajorpratyush

some news, i really need to define a different icon for my splash screen..

rubensflinco avatar Oct 14 '20 05:10 rubensflinco

Even if it is not recommended, you can override the images located at app/src/main/res/drawable-*/splash.png (where * must be replaced by each resolution).

:warning: Warning: Bubblewrap doesn't expect the generated Android project to be updated using external editors. Any files added manually to the Android project will be deleted or overwritten when update is executed. Changes to twa-manifest.json are preserved.

oliverpool avatar Sep 13 '21 15:09 oliverpool

Thanks @oliverpool. Indeed, you can override the images at app/src/main/res/drawable-*/splash.png and everything should work fine as long as bubblewrap update is not invoked, as that will regenerate the project and destroy those images.

andreban avatar Sep 13 '21 16:09 andreban