Ionic android app not able to access any API data over http

When running ionic apps in browser using ionic serve. Everything is working fine.

But, after building the app and running on device the XHR (API requests GET, POST) requests keep on pending and dosen’t receives any data and then timeout happens.

Already added

  content src="index.html"/>
  access origin="*"/>
  allow-navigation href="*">

in config.xml