Hello, i’m using capacitor in view to build an apk with js and html. i’m testing the build with android studio but i don’t know why the distant images are not showing in the emulator. Is there a way to load external url in the application. my src for the images looks like this <img src=“http://www.codingandscripting.fr/imgdj/001.jpg>”. thanks in advance for your replies.
Well i’ve found a solution on the forum with this setting in AndroidManifest.xml (android:usesCleartextTraffic=“true”)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ImDJ.mobile">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">