breautek commented on a change in pull request #1050: usesCleartextTraffic
information
URL: https://github.com/apache/cordova-docs/pull/1050#discussion_r392604545
##########
File path: www/docs/en/dev/guide/platforms/android/index.md
##########
@@ -766,6 +766,26 @@ The corresponding html:
</body>
</html>
```
+### Android Quirks
+The default API level in the Cordova Android platform has been upgraded. On an
Android 9 device, clear text communication is now disabled by default.
+
+By default HTTP and FTP etc. will refuse the apps requests to use cleartext
traffic. The key reason for avoiding cleartext traffic is the lack of
confidentiality, authenticity, and protections against tampering; a network
attacker can eavesdrop on transmitted data and also modify it without being
detected. You can learn more about the `android:usesCleartextTraffic` or any
other android application elements setting in the [documentation for Android
developers](https://developer.android.com/guide/topics/manifest/application-element).
+
+To allow clear text communication again, set the
`android:usesCleartextTraffic` on your application tag to true in `config.xml`
file:
+```xml
+<platform name="android">
+ <edit-config file="app/src/main/AndroidManifest.xml" mode="merge"
target="/manifest/application">
+ <application android:usesCleartextTraffic="true" />
+ </edit-config>
+</platform>
+
Review comment:
Oops, maybe I messed up in my last suggestion, but the block end is missing
after the `</platform>`
We should have a ``` after `<platform>`
Without the ending ```, we are making the rest of the document a
pre-formatted block.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]