-
Notifications
You must be signed in to change notification settings - Fork 310
Android: Cannot send data to the server. CLEARTEXT communication to not permitted by network security policy #269
Comments
Your Nightscout URL address in the uploader needs to be in this form: |
I do not have https on my nightscout page. I am not using heroku or other cloud. |
Ah ok , the uploader will only work with https. You can build the uploader with the follow changes to make it work with http: Add src\main\res\xml\network_security_config.xml file with the following content:
Add this line into AndroidManifest.xml as part of the application declarations:
It will look like this when added:
|
Hi I'm not a developer and struggle during AndroidStuidio setup. |
@Fix3l did you upgrade gradle by accident? |
Hm the first errors told that fabric isn't reachable or something. Androidstudio recommended to work in offline mode. |
Dear all, I run into the same issue as mentioned above. |
Your Environment
version 0.11.1
Brief Explanation of Issue
When trying to upload data to Nighscout, it throws error:
Android: Cannot send data to the server. CLEARTEXT communication to not permitted by network security policy
Uploader Error Code
Android: Cannot send data to the server. CLEARTEXT communication to not permitted by network security policy
Steps to Reproduce (for bugs)
The text was updated successfully, but these errors were encountered: