I am using Laravel Echo Ionic on the project. I get ERR_CLEARTEXT_NOT_PERMITTED error while running it on mobile devices but it is running fine on webview and emulator.
I have tried to add
<uses-permission android:name=“android.permission.INTERNET” />
<uses-permission android:name=“android.permission.ACCESS_NETWORK_STATE” />
<uses-permission android:name=“android.permission.ACCESS_WIFI_STATE” />
on AndroidManifest.xml
but, it doesn't work.
and i've tried to add
<access origin=“*”/>
<allow-intent href=“*” />
<allow-navigation href=“*” />
on config.xml.
and lastly i've tried to modify config.xml with
<edit-config file=“app/src/main/AndroidManifest.xml” mode=“merge” target=“/manifest/application”>
<application android:usesCleartextTraffic=“true” />
</edit-config>
but all doesn't work for me.
Any idea how to fix this problem?