Internet permission error

1

I'm working with cordova an application for Android that makes use of the internet. For this, I add the cordova-plugin-network-information plugin, which is supposed to add the permison.INTERNET , but when reviewing the manifest.xml , it does not appear anywhere, and if you add it, it does not help at all.

The problem is that when I compile the APK in debug mode, everything works fine, but when I compile with the cordova build android --release statement, it generates the APK , and all good (in theory), when I sign and align it when it's over, apparently everything is fine, but when installed on a phone, it does not ask for permission to access the internet, and when it is installed, it does not stop Do nothing because you do not have access to the internet.

Note: With the debug APK , yes, everything works fine.

    
asked by Irvin Leiva 27.01.2017 в 23:37
source

1 answer

0
  

Cordova does not allow HTTPS calls to servers with untrusted SSL certificates installed on them

Some time ago I had the same problem that you have, and because browsing the internet I found this interesting article:

link

The article is in English, the important thing of that article is the following:

  

The best way to solve this problem is to install an SSL certificate on the server side that is TRUSTED on   Android OS and iOS.

After reading this, the first thing I did was to change from link to link to try, and it worked !!!. Even with the signed APK it worked. The problem was neither the code nor the plugins.

  

Then the problem was that it had a defective SSL certificate   configured on the server side.

I hope this can help you.

You can read more about SSL here

    
answered by 30.01.2017 в 19:57