You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/22 13:07:30 UTC

[GitHub] [cordova-android] breautek commented on issue #1355: Unable to run cordova app on Android 11

breautek commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-924912541


   > Application is launched in android 11 but stuck in splashscreen. 
   
   There are two reasons that I can think of that could result into this behaviour, both I think would only occur if you control the splashscreen (e.g. do not have auto hide enabled).
   
   1. The webview is loading but is running into a javascript error. You can check for this by using Chrome's remote web inspector while running the debug apk. [Learn how to setup your device/emulator to remote debug webviews](https://breautek.com/articles/debugging-cordova-apps.html). If you see no javascript errors, it would be good to confirm that the `deviceready` is in fact still being triggered or not.
   2. The webview is not loading at all, most likely due to a plugin failure on the native side. This generally would result in complete native crash however. To gain more insights on what is happening on the native side, you can open up the Android project located at `<cordova-project>/platforms/android/` in Android Studio, which provides easy access to the native log output while debugging your app from the IDE.
   
   Couple of other notes, which kind of extends onto Faksprod comment:
   - cordova-android@9 is intended to be ran with Cordova CLI 9 or 10, not Cordova CLI 8. Not sure how much this matters in this case, but I always recommend using the latest version of the CLI tools if possible.
   - In my experience, I was able to target API 30 fine on cordova-android@9, but it really depends on what your use cases are. For example, we still have issues with the new API 30 restrictions when accessing external files (files that is outside of the app's sandbox filesystem). cordova-android@10 adds support for newer technology to make it easier to modernise plugins, but it doesn't necessary mean that all plugins are updated to be API 30 compatible. 


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org