App stop normal work after Cordova build --release android

After release build ajax calls stop work on login page just return status 0, when i try skip login page and start app from /home i just see blank screen :frowning:
Any ideas??? Can i publish debug app on Google Play ? How sing debug apk?

How delete this topic ?

Did you find a solution ??

it is ssl certificate problem, i think, you can try rewrite it is work’s for me.

    public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {

        final String packageName = parentEngine.cordova.getActivity().getPackageName();
        final PackageManager pm = parentEngine.cordova.getActivity().getPackageManager();

        ApplicationInfo appInfo;
        try {
            appInfo = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA);
            /*if ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
                // debug = true
            } else {
                // debug = false
                super.onReceivedSslError(view, handler, error);
            } */
        } catch (NameNotFoundException e) {
            // When it doubt, lock it out!
            super.onReceivedSslError(view, handler, error);

1 Like

Thanks for your answer.
Tried that, but it’s still not working.
This problem only regards https:// url
I tried my own webserver + an other one (

This actually worked. I had an extra CSP issue.
The above java workaround works, although I’d better not tweak core java files.

Anyway thanks !

Why don’t you fix the real issue? You test for ssl certificate issues at

Actually my domain passed the test at ssllabs.
The SSL certificate is provided by Let’s Encrypt which is a recent certificate provider. I think it might not be trusted by outdated android browsers.