igorsantos07 opened a new issue, #1669:
URL: https://github.com/apache/cordova-android/issues/1669

   # Bug Report
   This is the same as #1579, except I'm using Android 12 on an OnePlus 7t 
instead of a Realme.
   
   ## Problem
   Splash screen shows just the background color, no icon whatsoever.
   
   ### What is expected to happen?
   Migration to cordova-android 12 should go smooth, without having to do 
guesswork on migrating the splashscreen or why the heck the icon is never 
showing up.
   
   ### What does actually happen?
   OnePlus splashes just with the background color. A Samsung tablet with 
Android 11, though, works just fine*.
   
   Honestly, while the previous user decided to just abandon the bug report, I 
think this is an important problem since it actually makes our Cordova app 
*unreliable*. A splashscreen without any text or icon, even though it's 
colored, looks like a broken app for the user. The moment they click the icon, 
they _want_ to see something, and seeing just a blank/colored screen is 
confusing - specially if we're downloading a new payload, which could make the 
splashscreen hang for more time than the user would bear an empty screen.
   
   > \* I realized I should try other devices only after I gave up and started 
googling for splash screen problems on cordova 12, and then found #1579; sadly, 
**I had spent almost a day trying to figure out what I was doing wrong**, since 
documentation is really lacking on that part. Specifically, it's missing an 
explanation on what formats are acceptable for the icon, since it looks like it 
only works with an XML file (from unknown origin, had to google to find how to 
create one) but it actually accepts the old PNG, as long as it has the proper 
padding. There's also no clear path of migration from the previous `<splash>` 
tags, not even in the announcement blog post - you have to read through the 
original Android documentation to piece stuff out, that's totally frustrating.
   
   ### Command or Code
   Showing here the relevant(?) parts of `config.xml`:
   ```xml
   <engine name="android" spec="^12.0.1" />
   <platform name="android">
       <preference name="android-targetSdkVersion" value="33" />
   
       <!-- TODO overrides cordova-plugin-push's requirement of 1.5.20, which 
causes some deprecation errors -->
       <preference name="GradlePluginKotlinEnabled" value="true" />
       <preference name="GradlePluginKotlinVersion" value="1.7.21" />
   
       <preference name="AndroidWindowSplashScreenBackground" value="#F8B61D" />
       <preference name="AndroidWindowSplashScreenAnimatedIcon" 
value="res/drawable/bot.xml" />
       <!-- preference name="AndroidWindowSplashScreenAnimatedIcon" 
value="res/drawable/bot.png" /-->
   </platform>
   <preference name="AutoHideSplashScreen" value="false" />
   ```
   
   ### Environment, Platform, Device
   Affected device: Android 12, [OnePlus 
7t](https://www.gsmarena.com/oneplus_7t-9816.php)
   Working device: Android 11, [Samsung 
SM-P205](https://www.gsmarena.com/samsung_galaxy_tab_a_8_0_&_s_pen_(2019)-9651.php)
   I also tested on an [ancient Moto G4 
Play](https://www.gsmarena.com/motorola_moto_g4_play-8104.php#xt1603) running 
Android 7, it also works fine, if this is of any help :joy:
   
   
   ### Version information
   Cordova CLI 12.0.0 (cordova-lib 12.0.1)
   Cordova-android 12.0.1
   Target Android SDK: API 33
   Linux Mint Uma 20.2
   Android Studio Giraffe (only used to generate the vector XML, but could be 
used for debugging if necessary, I guess?)
   
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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.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

Reply via email to