dylanfpaul commented on issue #1578: URL: https://github.com/apache/cordova-android/issues/1578#issuecomment-1703269325
> > Can you confirm if a .png still works when targeting Android 13? I cannot simply use a png for the value of this preference and get my icon to show up. It always defaults to the cordova default splashscreen even on a real device. > > PNGs can be used and is what I'm using for my apps. > > But a 2732x2732 png probably won't look right, that's not the expected resolution. Like I mentioned in [#1578 (comment)](https://github.com/apache/cordova-android/issues/1578#issuecomment-1489255644), the icon should be 240x240dp. > > If you're using rasterized PNGs instead of vectors, you'll need to scale up dp unit to px unit, otherwise it won't look right on high density devices. `xxxhdpi` devices is 4x the base dp unit. So you'll need a 960x960 PNG image. > > Android masks the image, so only the center 160dp (or 640px) radius will be shown. Thanks for confirming pngs are still usable. I am referencing a png file in this tag `<preference name="AndroidWindowSplashScreenAnimatedIcon"` to no avail. Instead of showing my png file, it always shows the default cordova splashscreen with the cordova logo. I have tried this in multiple emulated devices as well as a physical device and it is always showing the default cordova splashscreen. I am on Cordova 11 by the way. Perhaps I should open a new issue if it isn't easily answerable here. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
