breautek commented on issue #1631: URL: https://github.com/apache/cordova-android/issues/1631#issuecomment-1634488697
A stuck splash screen generally indicates an error that prevented something from initialising properly. The error could be in JS (webview) land or on the native side. > Splash Screen stucks when app running on a device without any errors or warnings. I'm not sure where you checked for errors, so I'll describe how to check both the native side and JS land. For the Webview/JS, use the Chrome inspector to see any console output. To check for native logs, open the android project in android studio. The project can be found at `<cordova-project>/platforms/android`. **Do NOT** accept any updates that Android Studio may prompt when you open the project, as it will likely break the project. You can launch the app from Android Studio which has the native debugger attached and a filtered logcat. ``` cancelDraw androidx.core.splashscreen.SplashScreen$Impl$setKeepOnScreenCondition$1@b516b93 isViewVisible: true ``` This looks like a log message stating that android is still waiting on the condition to return false. Any actual insight on what the app is actually doing is probably further up in the log. If you can provide a logcat dump for your application from applcation start to when it "hangs" at the splashscreen, someone can probably help you dissect it. -- 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]
