Hi,
I have an Ionic4 app with some banners, when I click on a banner, a site should open in the browser of the mobile.
The URLs are opened with the command:
window.open(bannerUrl);
The problem is that not all the sites have the https version, so on Android 9 when I click the banner I have the error:
net:: ERR_CLEARTEXT_NOT_PERMITTED
I have already done these modifications on the config.xml file:
<widget id="..." version="01.00.48" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
..
<platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true" />
</edit-config>
<allow-navigation href="*" />
</platform>
But the problem persists.
How can I open an external Http link on android?
Claudio Battaglino