Cordova signed apk produces a blank screen after splash screen

你说的曾经没有我的故事 提交于 2021-01-27 16:07:48

问题


Cordova debug build working fine. But signing apk produces white screen after splash screen

Already tried with creating new app and signing with the release key. But the same issue on signed apk.

cordova version - 7.1.0 
cordova platform android -> 7.1.0

Here are plugins that i'm using:

-  cordova plugin add cordova-plugin-camera  cordova plugin add
-  cordova-plugin-dialogs@~2.0.1  cordova plugin add
-  cordova-plugin-file@~6.0.1  cordova plugin add
-  cordova-plugin-geolocation@~4.0.1  cordova plugin add
-  cordova-plugin-google-analytics@~1.8.6  cordova plugin add
-  cordova-plugin-inappbrowser@~3.0.0  cordova plugin add
-  cordova-plugin-splashscreen@~5.0.2  cordova plugin add
-  cordova-plugin-statusbar@~2.4.2  cordova plugin add
-  cordova-plugin-whitelist@~1.3.3  cordova plugin add
-  cordova-plugin-x-socialsharing@~5.4.1  cordova plugin add
-  ionic-plugin-keyboard@~2.2.1  cordova plugin add
-  cordova-plugin-network-information@~2.0.1  cordova plugin add
-  cordova-plugin-x-toast@~2.6.2  cordova plugin add
-  cordova-plugin-customurlscheme@~4.3.0   cordova plugin add
-  cordova-plugin-file-transfer@~1.7.1  cordova plugin add
-  cordova-plugin-facebook4@~2.2.0   cordova plugin add
-  cordova-plugin-googleplus

How I can debug signed apk? to see errors on signed apk build. What could be the reason that produces a white screen on signing?

Thanks in advance!


回答1:


Most cases, it would be some plugin that is causing the issue with the target device. Now, how can you debug this

  1. Load your cordova project in Android Studio
  2. Run your project to the device directly.
  3. Once the apk is installed and your cordova app is loaded, check your logcat for potential show stoppers (will be in red). Once you identify the root cause, you can work on making a fix.

Hope this helps.




回答2:


have you tried Android Debug Bridge (ADB)?

for example, on Ubuntu terminal, you can type:

adb logcat chromium:D SystemWebViewClient:D *:S



回答3:


I guess It's a SSL certificate problem in server. It will work fine in debug mode, using expired ssl certification. But It will not working in Singed APK.

Check your server url to below link. https://www.digicert.com/help/



来源:https://stackoverflow.com/questions/56836961/cordova-signed-apk-produces-a-blank-screen-after-splash-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!