Answer the question
In order to leave comments, you need to log in
Cordova (phonegap) + Android9 internet not working?
Kind programmers, share config.xml which contains permissions so that requests to the Internet (post, get, wss) would work. Everywhere I use https and wss, but requests do not go through on Android versions > 7
______________
PS On any android versions up to 8, everything works fine.
In general, at least http or https requests work, with the exception of ws. Sockets only work like WSS.
On version 9, everything is silent. It is clear that no errors are displayed in the phonegap debugger.
Answer the question
In order to leave comments, you need to log in
I found it myself.
<config-file platform="android" parent="/manifest" mode="merge">
<application android:usesCleartextTraffic="true" />
</config-file>
<platform name="android">
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true" />
</edit-config>
</platform>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question