apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

Splashscreen zoomed on hide (Android 12+ API 32+) #1653

Closed roman-rr closed 8 months ago

roman-rr commented 8 months ago

Bug Report

Problem

Splashscreen zoomed on hide (see video below) ezgif-5-cb4d2acb62

What is expected to happen?

Splashscreen image/icon persist sizes

Information

Zoom is happens right on this declaration:

View splashScreenView = splashScreenViewProvider.getView();

File: platforms/android/CordovaLib/src/org/apache/cordova/SplashScreenPlugin.java Line: 145

And then fade function initiated. I Guess something wring with getView function of splashScreenViewProvider

Command or Code

cordova build android

Environment, Platform, Device

Real device: Samsung A51 OS: Android version 13

Version information

cordova --v
11.0.0
"cordova-android": "^12.0.0"

Checklist

Related

https://github.com/apache/cordova-android/issues/1514 https://github.com/ionic-team/capacitor-plugins/issues/1322

Sources for reproduction

splash-zoom-app.zip

roman-rr commented 8 months ago

Found exact reason: id value in config.xml. This issue only can be reproduced with default io.cordova.hellocordova, any other id value will fix this issue.

<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">