7

I'm doing the migration from Cordova 10.x to 11.x, and followed this article. On the former versions, user must provide the full images for all resolutions and define then using the <splash> tag; now, there's no <splash> tag anymore, but only one image.

The result is that the splashscreen is smaller and restricted to a circle, with radius of 1/3 of the width of the device.

The provided image has no borders, and my config.xml is as follow:

<?xml version='1.0' encoding='utf-8'?>
<widget
  ...
  <platform name="android">
    <preference name="android-targetSdkVersion" value="32" />
    <preference name="AndroidWindowSplashScreenAnimatedIcon" value="splash.png" />
    <preference name="AndroidWindowSplashScreenBackground" value="#FFFFFF" />
  ...

When I send small images, they are placed inside this circle. But bigger images are cropped.

Is it a desirable behavior? If yes, can I customize this size? I coudn't be able to found any way to define it's size at Cordova Docs.

Here goes two printscreens from my mobile device:

Image of Cordova 10 version (desired)

Image of Cordova 11 version (cropped into a circle)

Any ideas ? Thanks in advance!

Fernão
  • 73
  • 1
  • 5

1 Answers1

0

See this link for sizes. More info about this here

Eric
  • 9,870
  • 14
  • 66
  • 102
  • Hi @Eric, I have go through the link, but cant see any clue to increase the display size, is there any config I can change in config.xml to increase the size to larger? – Panadol Chong Nov 24 '22 at 06:24
  • hi @Eric, do u means increase the size of the image? – Panadol Chong Nov 24 '22 at 14:50
  • You can't increase the size. It's either 240p with color background or 288p with transparent background. The size of the circle in the image is also important. Edited for typo. – Eric Nov 24 '22 at 21:01
  • last time I am using full image to display the splashscreen in full screen. any other plugin I can use to replace this? – Panadol Chong Nov 25 '22 at 01:29
  • I don't think so... – Eric Nov 25 '22 at 02:03