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

   # Bug Report
   
   ## Problem
   I'm using Construct 3 engine. After a certain [update 
](https://www.construct.net/en/make-games/releases/beta/r303)in which they 
moved to a newer Cordova version, the ANR rate and Slow cold starts went up 
significantly, with the most frequent ANR report being "Native method - 
android.os.MessageQueue.nativePollOnce". After some investigation I tried 
disabling the new splash screen by commenting out 
`cordovaInterface.pluginManager.postMessage("setupSplashScreen", 
splashScreen);` in CordovaActivity.java.
   After this the ANRs and Slow cold starts went back to normal, but you get a 
few seconds of black screen instead of the splash which is not ideal.
   
![Untitled-2](https://user-images.githubusercontent.com/42392288/196163058-279030bc-7016-4df0-99cb-b606ddedcc7c.png)
   ### What is expected to happen?
   Low ANR and Slow cold start rates
   
   
   
   ### What does actually happen?
   High ANR and Slow cold start rates
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   This also affects other Construct 3 users, so I filed an issue with C3 team 
https://github.com/Scirra/Construct-3-bugs/issues/6166
   But they suggested reporting it here instead.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `cordovaInterface.pluginManager.postMessage("setupSplashScreen", 
splashScreen);`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Construct 3, Android, Different devices
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   I'm not sure which versions Construct 3's build service is using
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [+] I searched for existing GitHub issues
   - [?] I updated all Cordova tooling to most recent version
   - [+] 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: [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