Proxy urls from ionic.config.json not working in android emulator

Hello I am trying to access an end point on my api using @ionic-native/http .
it works when I use “ionic serve” , but when I do, " ionic cordova emulate android" , the proxy urls dont seem to work. So I do something like this, this.apiUrl = this.platform.is(‘ios’) || this.platform.is(‘android’)? ‘http://192.168.1.5/fcm_api/account’ : ‘/applogin/’; . But I don’t feel that this is the correct way. Can I access the ionic.config.json some other way ? is there a way for proxy urls to work in my android?

my ionic info is:
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v8.11.1
npm               : 6.0.0
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\themhz\AppData\Local\Android\Sdk

Misc:

backend : pro

Having the same issue… Still investigating the matter

It may happen depending on many situations.
Take a look at this thread if it contains your solution or not