[SOLVED] installing apk android device 4.4 erro localhost:8080

a few days I have been having problems installing the apk on the device with android 4.4.4, presenting localhost error: 8080.

after a lot of searching in the forum, watching videos on youtube, asking in group of the telegram, I discovered what is happening, it is a bug in the plugin of the ( cordova-plugin-ionic-webview version 2 ).

to solve the problem, I’ll send an image below to give credit to the person who solved the problem

The commands I used where these:

cordova plugin rm cordova-plugin-ionic-webview
cordova plugin add cordova-plugin-ionic-webview@1.2.1
ionic cordova platforms remove android
rm -rf plugins
ionic cordova build android

I created this topic to make it easier for other users who have the same problem, because it was difficult for me to look for the solution of this error

CREDITS: https://forum.ionicframework.com/u/carlosjfuentesp

For future readers of this topic:

If the device you are testing on is using Android 4.x (e.g. Android 4.4 KitKat), this article might explain what is going on and how to fix it: https://ionic.zone/debug/ionic-and-android-4