Http status 0 (no internet) with phonegap build release apk


#1

I need your help. I have an app in the app store which is based on ionic and build with phonegap build. Since last week some of my users cannot login into to the app anymore. I already tried to debug on the server side but the request does not even reach the server. The weird thing is that the problem started to appear last week before that everything worked fine. It seems to occur only on some phones, but I cannot see a pattern of smartphone type or android version. I already read most of the related posts and checked the following possible reasons:

Missing CSP: I have following CSP entry in my index.html

<meta http-equiv="Content-Security-Policy" content="default-src *;img-src * data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

And following entry for the whitelist plugin in the config.xml

<access origin="*" subdomains="true"/>
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="data:*" />

I also checked the “Access-Control-Allow-Origin” and Access-Control-Allow-Headers on my node.js server

res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization");

The release version is working on the phones of our team but some people have problems. Did anyone of you encounter a similar problem? Or does know a starting point where to look for the problem? I would really appreciate your help, because I already tried everything I have in mind.

Best regards,

Peter


#2

Hello,

did just run in exactly the same issue. Was working fine for over 2 years and suddenly without any change the login stopped working for android devices but seems to work fine on iOS.

Did you find a solution?


#3

Funny after not finding a solution for hours and now just commenting here I found the answer to the problem a few minutes later:

I for example messed up when I updated my cert and must have had a typo when I added the intermediate one.