When i run the ionic project using
‘ionic serve --l --devapp’
it works fine but when i run app using
‘ionic cordova run android’
or by creating app using command
‘ionic cordova build android’
It gives api call error “ERR_CLEARTEXT_NOT_PERMITTED”
IONIC INFO
Ionic:
ionic (Ionic CLI) : 4.12.0 (C:\Users\Dilee\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 5.0.0
@angular-devkit/build-angular : 0.803.25
@angular-devkit/schematics : 8.3.25
@angular/cli : 8.3.25
@ionic/angular-toolkit : 2.1.2
Cordova:
cordova (Cordova CLI) : 7.1.0
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 5 other plugins)
System:
NodeJS : v10.15.1 (C:\Program Files\nodejs\node.exe)
npm : 2.15.12
OS : Windows 10
POST http://213.239.197.27:9092/sooperexchange/v1/login net::ERR_CLEARTEXT_NOT_PERMITTED
I did all config.xml and security xml changes but unable to resolve it