bengrah-miller opened a new issue, #1561:
URL: https://github.com/apache/cordova-android/issues/1561

   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   When applying the config 
   
   ```xml
           <preference name="AndroidInsecureFileModeEnabled" value="true" />
   ```
   
   To the `<platform name="android">` section of `config.xml`, the 
Ionic/Cordova app should be showing as being hosted from 
_file:///android_asset_ when using Chrome Dev Tools
   
   ### What does actually happen?
   
   App is being hosted from _localhost_
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   Created a new ionic starter project using the following command 'ionic start 
insecure-test-1 blank --type=ionic-angular'
   Added the _android_ platform to the project: ionic cordova platform add 
[email protected]
   Added _AndroidInsecureFileModeEnabled_ to `config.xml` file (full 
`config.xml` file included):
   
   ```xml
   <?xml version='1.0' encoding='utf-8'?>
   <widget id="io.ionic.starter" version="0.0.1" 
xmlns="http://www.w3.org/ns/widgets"; 
xmlns:cdv="http://cordova.apache.org/ns/1.0";>
       <name>MyApp</name>
       <description>An awesome Ionic/Cordova app.</description>
       <author email="[email protected]" 
href="http://ionicframework.com/";>Ionic Framework Team</author>
       <content src="index.html" />
       <access origin="*" />
       <allow-intent href="http://*/*"; />
       <allow-intent href="https://*/*"; />
       <allow-intent href="tel:*" />
       <allow-intent href="sms:*" />
       <allow-intent href="mailto:*"; />
       <allow-intent href="geo:*" />
       <preference name="ScrollEnabled" value="false" />
       <preference name="BackupWebStorage" value="none" />
       <preference name="SplashMaintainAspectRatio" value="true" />
       <preference name="FadeSplashScreenDuration" value="300" />
       <preference name="SplashShowOnlyFirstTime" value="false" />
       <preference name="SplashScreen" value="screen" />
       <preference name="SplashScreenDelay" value="3000" />
       <platform name="android">
           <preference name="Scheme" value="http" />
           <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" 
target="/manifest/application" 
xmlns:android="http://schemas.android.com/apk/res/android";>
               <application 
android:networkSecurityConfig="@xml/network_security_config" />
           </edit-config>
           <resource-file 
src="resources/android/xml/network_security_config.xml" 
target="app/src/main/res/xml/network_security_config.xml" />
           <allow-intent href="market:*" />
           <preference name="AndroidInsecureFileModeEnabled" value="true" />
           <icon density="ldpi" 
src="resources/android/icon/drawable-ldpi-icon.png" />
           <icon density="mdpi" 
src="resources/android/icon/drawable-mdpi-icon.png" />
           <icon density="hdpi" 
src="resources/android/icon/drawable-hdpi-icon.png" />
           <icon density="xhdpi" 
src="resources/android/icon/drawable-xhdpi-icon.png" />
           <icon density="xxhdpi" 
src="resources/android/icon/drawable-xxhdpi-icon.png" />
           <icon density="xxxhdpi" 
src="resources/android/icon/drawable-xxxhdpi-icon.png" />
           <splash density="land-ldpi" 
src="resources/android/splash/drawable-land-ldpi-screen.png" />
           <splash density="land-mdpi" 
src="resources/android/splash/drawable-land-mdpi-screen.png" />
           <splash density="land-hdpi" 
src="resources/android/splash/drawable-land-hdpi-screen.png" />
           <splash density="land-xhdpi" 
src="resources/android/splash/drawable-land-xhdpi-screen.png" />
           <splash density="land-xxhdpi" 
src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
           <splash density="land-xxxhdpi" 
src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
           <splash density="port-ldpi" 
src="resources/android/splash/drawable-port-ldpi-screen.png" />
           <splash density="port-mdpi" 
src="resources/android/splash/drawable-port-mdpi-screen.png" />
           <splash density="port-hdpi" 
src="resources/android/splash/drawable-port-hdpi-screen.png" />
           <splash density="port-xhdpi" 
src="resources/android/splash/drawable-port-xhdpi-screen.png" />
           <splash density="port-xxhdpi" 
src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
           <splash density="port-xxxhdpi" 
src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
       </platform>
       <plugin name="cordova-plugin-statusbar" spec="2.4.2" />
       <plugin name="cordova-plugin-device" spec="2.0.2" />
       <plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
       <plugin name="cordova-plugin-ionic-webview" spec="^5.0.0" />
       <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
   </widget>
   ```
   Deployed app to device using: ionic cordova run android --device
   App deploys successfully, but is running on localhost and not file:///
   
   Ionic App
   http://localhost/
   at (0, 110)
   size 1080 × 2104
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   See above
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Windows 10
   Android 11
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   node: 16.16.0
   ionic cli: 5.4.16
   cordova: 11.0.0
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to