K
K
kuronokey2019-10-08 17:01:24
Android
kuronokey, 2019-10-08 17:01:24

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

1 answer(s)
K
kuronokey, 2019-10-08
@kuronokey

I found it myself.

<config-file platform="android" parent="/manifest" mode="merge">
  <application android:usesCleartextTraffic="true" />
</config-file>

Before that, following the advice on the forums, I inserted this
<platform name="android">
    <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
        <application android:usesCleartextTraffic="true" />
    </edit-config>
    </platform>

and it didn't work in phonegap.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question