You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/08/19 11:51:23 UTC

[GitHub] [cordova-plugin-whitelist] EdisonWerle edited a comment on issue #43: Network Error cordova android@8.0.0[bug]

EdisonWerle edited a comment on issue #43: Network Error cordova android@8.0.0[bug]
URL: https://github.com/apache/cordova-plugin-whitelist/issues/43#issuecomment-522534268
 
 
   Hello @willianslash!
   
   I solved it. 
   I put your configuration `android:usesCleartextTraffic="true"` in config.xml and it goes automatically to AndroidManifest.xml as you said
   
   
   ```
    <platform name="android">
           <edit-config file="app/src/main/AndroidManifest.xml" mode="merge"  target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
               <application android:networkSecurityConfig="@xml/network_security_config" />
               <application android:usesCleartextTraffic="true" />
           </edit-config>
           <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
           <allow-intent href="market:*" />
   .
   .
   .
   
   ```
   
   I also changed in resources / android / xml / network-security-config.xml authorizing the domains.
   
   
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <network-security-config>
       <domain-config cleartextTrafficPermitted="true">
           <domain includeSubdomains="true">localhost</domain>
           <domain includeSubdomains="true">192.232.233.145</domain>
           <domain includeSubdomains="true">192.168.1.12</domain>
       </domain-config>
   </network-security-config>
   ```
   
   Thanks @willianslash

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org