[Solved] Android app pointing issue


#1

What could be the issue >? why it is pointing to localhost?
Apk is pointing to localhost:8100 instead of file:///android_asset/www/index.html

Ionic:

ionic (Ionic CLI) : 4.4.0 (C:\Users\HP\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.2
Cordova Plugins : cordova-plugin-ionic-webview 1.2.1, (and 14 other plugins)

System:

Android SDK Tools : 26.1.1 (C:\Users\HP\AppData\Local\Android\Sdk)
NodeJS : v8.14.0 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10

build gradle

defaultBuildToolsVersion=“27.0.1” //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default

Testing on Redmi 4a with android version 7.1.2


#2

That’s the cordova-plugin-ionic-webview plugin. It serves the content from a local web server


#3

i dont know what was the issue it got resolved in today morning by reinstalling all of plugins, platforms and node_modules. this is very strange issue i ever faced. I had already opened the bug issue on github and tagged to high.
Anyway now it is resolved and i wont be able to reproduce since i have no clue what was wrong.