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 SystemWebViewClient.java it is work’s for me.
project\platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWEbViewClient.java

    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);
            handler.proceed();
            /*if ((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) {
                // debug = true
                handler.proceed();
                return;
            } 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 (https://resttesttest.com/)

EDIT
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 https://ssllabs.com/ssltest/

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.