sts-ryan-holton edited a comment on issue #1057:
URL:
https://github.com/apache/cordova-android/issues/1057#issuecomment-680907352
@breautek, no, the page is a local page so when going from
`file:///android_asset/www/index.html#/url/144228640160` ->
`file:///android_asset/www/index.html#/url/144228640160/2` there is no XHR
request, `/2`, after some Googling I found that:
```xml
<application android:usesCleartextTraffic="true" />
```
Needs to be added to the `config.xml` file, but adding it seems to make no
difference for me...
```xml
<platform name="android">
<icon density="xxxhdpi" src="res/icon/android/icon-192-xxxhdpi.png" />
<icon density="xxhdpi" src="res/icon/android/icon-144-xxhdpi.png" />
<icon density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" />
<icon density="hdpi" src="res/icon/android/icon-72-hdpi.png" />
<icon density="mdpi" src="res/icon/android/icon-48-mdpi.png" />
<icon density="ldpi" src="res/icon/android/icon-36-ldpi.png" />
<splash src="res/splash/android/Default@2x~universal~anyany.png" />
<allow-intent href="market:*" />
<custom-config-file parent="/*" target="AndroidManifest.xml">
<application android:usesCleartextTraffic="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission
android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
</custom-config-file>
<preference name="android-windowSoftInputMode" value="adjustPan" />
<preference name="android-minSdkVersion" value="28" />
<preference name="android-targetSdkVersion" value="29" />
</platform>
```
This **whole behaviour is only apparent for Android though, and works fine
in the browser and iOS which is incredibly strange!!**
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]