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/21 15:20:59 UTC

[GitHub] [cordova-android] harivenkatesh-id opened a new issue #1355: Unable to run cordova app on Android 11

harivenkatesh-id opened a new issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355


   # Bug Report
   Unable to run cordova app on Android 11 but it is working well till Android 10
   
   ## Problem
   
   - My Ionic cordova project, cordova version is 8.1.2 (cordova-lib@8.1.1)
   - ionic version is 6.12.3
   - Project android platform version is android 9.0.0
   
   My Project have below plugins
   
   - br.com.brunogrossi.MediaScannerPlugin 0.1.3 "Media Scanner Plugin"
   - cordova-plugin-app-preferences 0.99.4 "AppPreferences"
   - cordova-plugin-compat 1.2.0 "Compat"
   - cordova-plugin-device 2.0.2 "Device"
   - cordova-plugin-file 6.0.2 "File"
   - cordova-plugin-filechooser 1.2.0 "File Chooser"
   - cordova-plugin-filepath 1.6.0 "cordova-plugin-filepath"
   - cordova-plugin-globalization 1.11.0 "Globalization"
   - cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
   - cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
   - cordova-plugin-media-capture 3.0.3 "Capture"
   - cordova-plugin-mfilechooser 1.0.5 "Evolution36 filechooser"
   - cordova-plugin-network-information 2.0.2 "Network Information"
   - cordova-plugin-pasteclipboardfile 0.0.1 "Pasteclipboardfile"
   - cordova-plugin-screenshot 0.1.1 "ScreenShotPlugin"
   - cordova-plugin-splashscreen 6.0.0 "Splashscreen"
   - cordova-plugin-statusbar 2.4.2 "StatusBar"
   - cordova-plugin-webview-localstorage 0.0.1 "WebView Localstorage"
   - cordova-plugin-whitelist 1.3.3 "Whitelist"
   - cordova-sqlite-storage 3.4.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
   - ionic-plugin-deeplinks 1.0.22 "Ionic Deeplink Plugin"
   - phonegap-plugin-barcodescanner 8.0.1 "BarcodeScanner"
   
   ### What is expected to happen?
   
   Android .apk should work on all versions of android
   
   ### What does actually happen?
   
   Application is launched in android 11 but stuck in splashscreen. When changed targetsdkversion from 30 to 29 application is working properly.
   


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


[GitHub] [cordova-android] harivenkatesh-id edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-941936746






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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-930182071


   Tried upgrading my cordova-android to 10.1.1 issue remains same.


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


[GitHub] [cordova-android] Faksprod edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
Faksprod edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-924814565


   @harivenkatesh-id Did you try to update your Cordova Android platform to the latest 10.1.1 ? What I understood from this [Cordova post](https://cordova.apache.org/announcements/2021/07/20/cordova-android-10.0.0.html) is that SDK 30 (Android11) is now supported since Cordova android@10.0.0 (I'm not sure android @ 9.x.x officially support Android11 after reading this [answer](https://github.com/apache/cordova-android/issues/1116#issuecomment-747046025))
   
   Also, did you try just removing all your plugin before targeting API 30? Just to see if the app can run after splashscreen. Maybe one of your plugin enter in conflict with AndroidX or with the API level 30...


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


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

Posted by GitBox <gi...@apache.org>.
erisu commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-925598710


   I would recommend updating to 10.1.1 instead of just 10.0.0.
   
   There were added features and bug fixes.
   
   It is possible that the issue your having was already resolved in the latest release.


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


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

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-930194399


   > When inspected not getting any error
   
   If the JS console is not providing any information, then I would suggest opening up the android project that Cordova manages for you in Android Studio. The project is located at `<your-cordova-project>/platforms/android`
   
   The IDE will also likely notify you about plugin updates, **avoid updating any IDE/gradle plugins**. When in doubt, opt to not update anything that the IDE suggests.
   
   When you open the project up, it will take some time for the IDE to "sync" with your gradle. Once the IDE is synced, you'll be able to run/debug the app from the Android Studio IDE. 
   
   Click on the little Bug icon to "debug" your app. It will launch a simulator, or on a real device if you have one connected via USB.
   
   ![Screenshot from 2021-09-29 10-43-17](https://user-images.githubusercontent.com/11200662/135280665-2b52e29d-b22e-4c7a-9443-be9e43387a15.png)
   
   Once the app is launched, you'll be able to view the debug console by clicking on the `Debug` tab on the bottom:
   ![Screenshot from 2021-09-29 10-44-47](https://user-images.githubusercontent.com/11200662/135280937-2bdd8e1f-62f5-424a-8e31-978b54ecc870.png)
   
   The debug console may provide further insights what is happening, as what you've described kinda sounds like the error is occurring before the webview loads.


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-925886529


   Hi @erisu @Faksprod @breautek 
   
   With the requirement which i told above (i.e) with 8.1.2 (cordova-lib@8.1.1) and android 9.0.0 in pixel 3a application is running perfectly as expected. But app got stuck in splashscreen on one plus 6T, Realme and in Honor mobile phones. Not sure what was the issue
   
   When i did remote debugging i didn't see any issues. I don't know what i'm missing also i dont know what to test, and where to start debugging for this issue.
   
   @erisu i will update cordova-android to 10.1.1 and test once.
   


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


[GitHub] [cordova-android] Faksprod edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
Faksprod edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-924814565


   @harivenkatesh-id Did you try to update your Cordova Android platform to the latest 10.1.1 ? What I understood from this [Cordova post](https://cordova.apache.org/announcements/2021/07/20/cordova-android-10.0.0.html) is that SDK 30 (Android11) is now supported since Cordova android@10.0.0 (I'm not sure android @ 9.x.x officially support Android11 from this [answer](https://github.com/apache/cordova-android/issues/1116#issuecomment-747046025))
   
   Also, did you try just removing all your plugin before targeting API 30? Just to see if the app can run after splashscreen. Maybe one of your plugin enter in conflict with AndroidX or with the API level 30...


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-931420895


   Hi @erisu @Faksprod @breautek
   
   I ran this ionic application on Google Pixel 3a which runs on android 11, here application works as expected. But some of our clients were using oneplus, realme and honor which has Android11. In these mobiles, application hangs on splash screen. 
   
   @breautek, debuggin the app from the Android Studio IDE is not possible for me. As app works in my environment.
   
   Got stuck on this issue.. 
   


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-925152204


   Hi @Faksprod 
   
   i tried updating cordova version to 10.0.0 its not working yet.


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


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

Posted by GitBox <gi...@apache.org>.
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


[GitHub] [cordova-android] harivenkatesh-id edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-941936746


   
   Issue resolved closing this issue. 
    
   **Reason**: I have used crash logs and found, in some android devices application throws error when trying to open the database. Upgraded cordova-sqlite-storage to 6.0.0 resolved my issue.
   
   Found answer on #https://github.com/storesafe/cordova-sqlite-storage/issues/954
   


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


[GitHub] [cordova-android] harivenkatesh-id edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-930182071


   updated cordova-android to 10.1.1 issue remains same. @erisu @Faksprod @breautek


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


[GitHub] [cordova-android] harivenkatesh-id edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-925886529


   Hi @erisu @Faksprod @breautek 
   
   With the requirement which i told above (i.e) with 8.1.2 (cordova-lib@8.1.1) and android 9.0.0 in pixel 3a (android 11) application is running perfectly as expected. But app got stuck in splashscreen on one plus 6T, Realme and in Honor (Android11) mobile phones. Not sure what was the issue
   
   When tested app on other devices running on Android 10, application works as expected.
   
   When i did remote debugging i didn't see any issues. I don't know what i'm missing also i dont know what to test, and where to start debugging for this issue.
   
   @erisu i will update cordova-android to 10.1.1 and test once.
   


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


[GitHub] [cordova-android] harivenkatesh-id edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-930182071


   Tried upgrading my cordova-android to 10.1.1 issue remains same. @erisu @Faksprod @breautek


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-932267858


   @breautek  Tried
   
   > > Hi @erisu @Faksprod @breautek
   > > I ran this ionic application on Google Pixel 3a which runs on android 11, here application works as expected. But some of our clients were using oneplus, realme and honor which has Android11. In these mobiles, application hangs on splash screen.
   > > @breautek, debuggin the app from the Android Studio IDE is not possible for me. As app works in my environment.
   > > Got stuck on this issue..
   > 
   > Try using an AOSP emulator (an emulator without Google Services) and see if your issue is reproduced then. This is a hunch but perhaps your app contains something that depends on Google Services and these phones either have an incompatible version or Google Services is not available.
   > 
   > Emulators without the Google Play icon are emulators with no Google Services, such as the highlighted one below in my screenshot.
   > 
   > ![Screenshot from 2021-09-30 12-35-27](https://user-images.githubusercontent.com/11200662/135486564-d7f2faf0-bed5-4aee-8ec9-bfabe3388dea.png)
   
   Tried with AOSP emulator app works there too.


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


[GitHub] [cordova-android] harivenkatesh-id edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-941936746


   
   Issue resolved closing this issue. 
    
   **Reason**: I have used crash logs to find issue, in some android devices application throws error when trying to open the database. Upgraded cordova-sqlite-storage to 6.0.0 resolved my issue.
   
   Found answer on #https://github.com/storesafe/cordova-sqlite-storage/issues/954
   


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-941936746


   Hi @erisu @Faksprod @breautek
   
   Issue resolved closing this issue. Thanks for suggestions. 
    
   **Reason**: I have used crash logs and found, in some android devices application throws error when trying to open the database. Upgraded cordova-sqlite-storage to 6.0.0 resolved my issue.
   
   Found answer on #https://github.com/storesafe/cordova-sqlite-storage/issues/954
   


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


[GitHub] [cordova-android] harivenkatesh-id closed issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id closed issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355


   


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-935708257


   No luck on AOSP too


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-941936746


   Hi @erisu @Faksprod @breautek
   
   Issue resolved closing this issue. Thanks for suggestions. 
    
   **Reason**: I have used crash logs and found, in some android devices application throws error when trying to open the database. Upgraded cordova-sqlite-storage to 6.0.0 resolved my issue.
   
   Found answer on #https://github.com/storesafe/cordova-sqlite-storage/issues/954
   


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


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

Posted by GitBox <gi...@apache.org>.
Faksprod commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-924814565


   @harivenkatesh-id Did you try to update your Cordova Android platform to the latest 10.1.1 ? What I understood from this [Cordova post](https://cordova.apache.org/announcements/2021/07/20/cordova-android-10.0.0.html) is that SDK 30 (Android11) is now supported since Cordova android@10.0.0 (I'm not sure android@9.x.x officially support Android11 from this [answer](https://github.com/apache/cordova-android/issues/1116#issuecomment-747046025))
   
   Also, did you try just removing all your plugin before targeting API 30? Just to see if the app can run after splashscreen. Maybe one of your plugin enter in conflict with AndroidX or with the API level 30...


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


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

Posted by GitBox <gi...@apache.org>.
Faksprod commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-925905847


   @harivenkatesh-id One thing I like to do when I'm facing this kind of issue, is to restart from a very simple and clean app. Trying to debug my app which become more complex years after years is a nightmare.
   
   What I suggest: create a new Cordova app with the config and version you need to use.
   
   ```CLI
   cordova create testApp
   cd testApp
   cordova platform add android
   cordoba prepare
   ```
   
   Do not add any plugins (except the one automatically added when adding platform with cordova CLI). Add platform you need with version you want. Build this very simple app without adding any lines of codes and test it. If it works on the config you want, you know the problem is somewhere in your current app plugin/code.


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


[GitHub] [cordova-android] harivenkatesh-id closed issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id closed issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355


   


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


[GitHub] [cordova-android] harivenkatesh-id edited a comment on issue #1355: Unable to run cordova app on Android 11

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id edited a comment on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-930182071






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


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

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-930194399


   > When inspected not getting any error
   
   If the JS console is not providing any information, then I would suggest opening up the android project that Cordova manages for you in Android Studio. The project is located at `<your-cordova-project>/platforms/android`
   
   The IDE will also likely notify you about plugin updates, **avoid updating any IDE/gradle plugins**. When in doubt, opt to not update anything that the IDE suggests.
   
   When you open the project up, it will take some time for the IDE to "sync" with your gradle. Once the IDE is synced, you'll be able to run/debug the app from the Android Studio IDE. 
   
   Click on the little Bug icon to "debug" your app. It will launch a simulator, or on a real device if you have one connected via USB.
   
   ![Screenshot from 2021-09-29 10-43-17](https://user-images.githubusercontent.com/11200662/135280665-2b52e29d-b22e-4c7a-9443-be9e43387a15.png)
   
   Once the app is launched, you'll be able to view the debug console by clicking on the `Debug` tab on the bottom:
   ![Screenshot from 2021-09-29 10-44-47](https://user-images.githubusercontent.com/11200662/135280937-2bdd8e1f-62f5-424a-8e31-978b54ecc870.png)
   
   The debug console may provide further insights what is happening, as what you've described kinda sounds like the error is occurring before the webview loads.


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


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

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-931436090


   > Hi @erisu @Faksprod @breautek
   > 
   > I ran this ionic application on Google Pixel 3a which runs on android 11, here application works as expected. But some of our clients were using oneplus, realme and honor which has Android11. In these mobiles, application hangs on splash screen.
   > 
   > @breautek, debuggin the app from the Android Studio IDE is not possible for me. As app works in my environment.
   > 
   > Got stuck on this issue..
   
   Try using an AOSP emulator (an emulator without Google Services) and see if your issue is reproduced then. This is a hunch but perhaps your app contains something that depends on Google Services and these phones either have an incompatible version or Google Services is not available.
   
   Emulators without the Google Play icon are emulators with no Google Services, such as the highlighted one below in my screenshot.
   
   ![Screenshot from 2021-09-30 12-35-27](https://user-images.githubusercontent.com/11200662/135486564-d7f2faf0-bed5-4aee-8ec9-bfabe3388dea.png)
   
   
   


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


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

Posted by GitBox <gi...@apache.org>.
harivenkatesh-id commented on issue #1355:
URL: https://github.com/apache/cordova-android/issues/1355#issuecomment-930182071


   Tried upgrading my cordova-android to 10.1.1 issue remains same.


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