breautek commented on issue #1669: URL: https://github.com/apache/cordova-android/issues/1669#issuecomment-2191570477
@Boeblahoebla your splashscreen is not supported and goes against android's splashscreen guidelines. Android's standardised splashscreens only allow for an image roughly the size of the app icon with a flat colour background. It's heavily opinionated because they want to control the look and feel of the launching of the apps for a consistent experience. I know it's dumb, but that's how android's splashscreen system works. These links are provided in the cordova docs as well but you can see the anatomy of the android splashscreen [here](https://developer.android.com/develop/ui/views/launch/splash-screen#splash_screen_dimensions). Cordova enables the "icon with background color" so the following applies: > App icon with an icon background: this must be 240×240 dp and fit within a circle 160 dp in diameter. So the splashscreen graphic must fit within a 160x160dp circle of a 240x240dp canvas. See Figure 2 for an example graphic. If you're authoring rasterized images like a PNG, then multiply all dp values by 4 for your resolution, otherwise the images will look blurry on high-res devices. So the spashscreen PNG asset should be 960x960 canvas size, with the content fitting inside a centered circle that is 640x640. Android also allows you to control the colour of the background, but it must be a colour resource. So basically you can only use flat colours. Lastly the third part that android allows you edit is the branding image, which is a slightly larger image that can appear on the bottom of the splashscreen. Cordova however doesn't currently support this [feature](https://cordova.apache.org/docs/en/12.x/core/features/splashscreen/index.html#androidwindowsplashscreenbrandingimage). Additionally Android doesn't support this feature on older devices that has splashscreen implemented via the compatibility library. In other words, it's only available on Android 12 devices and later. Historically, cordova android did support full screen splashscreens because we had our own splashscreen implementation, which we dropped support when android had their own implementation, which forced on Android 12+. Apps implementing a custom splashscreen view would see the "native" android splashscreen followed by the app's custom splashscreen. This is why Cordova dropped support for full size splashsceens and decided to only operate within Android's splashscreen splashscreen. If you want to follow the native splashscreen with your own "splashscreen", then you can mimic that behaviour directly within the webview. Just know that the native splashscreen is not replaceable. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org