DavidTalevski commented on issue #1650:
URL: 
https://github.com/apache/cordova-android/issues/1650#issuecomment-1689832153

   > If you're delaying the dismissal of the newer android splashscreen system 
introduced in cordova-android@11, it will trigger an ANR report.
   > 
   > The splashscreen should only appear roughly for about 1 second, but I 
think there is a 5 second timer for ANR triggers.
   > 
   > So that would be the first thing I'd check.
   
   Here are the preferences associated with the splashscreen in the config.xml:
   
   ```xml
   <preference name="AutoHideSplashScreen" value="true" />
   <preference name="SplashScreenDelay" value="0"/>
   <preference name="ShowSplashScreenSpinner" value="false" />
   <preference name="SplashShowOnlyFirstTime" value="false" />
   <preference name="FadeSplashScreenDuration" value="500" />
   <preference name="SplashMaintainAspectRatio" value="true" />
   <preference name="AndroidWindowSplashScreenAnimatedIcon" 
value="res/screen/android/logo.png" />
   <preference name="AndroidWindowSplashScreenBackground" value="#ffffff" />
   <preference name="AndroidWindowSplashScreenIconBackgroundColor" 
value="#ffffff" />
   ```
   I must mention that I am using this hook 
https://github.com/apache/cordova-android/issues/1465#issuecomment-1476238564 
to edit the themes.xml file in order to set windowLayoutInDisplayCutoutMode to 
"never".
   


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

Reply via email to