Ionic mobil app calling aws EC2

I have a aws account with RDS (sql express) and ec2 (windows 2012 with tomcat running my API).

When I run the ionic serve on my windows PC, using the browser it connects fine to ec2 and ec2 in turn looks up the RDS for data. Then when I build: ionic build android and create .apk. When I run my .apk on my android device, the call to ec2 is never made. I don’t see any request in my ec2 tomcat log. I have tomcat running on command line so I can see request. But when I use a browser and call the api it works.

Please help and let me know what the problem might be? This is my first Mobil app I have built.

Thanks

  • not using HTTPS
  • not enabling CORS stuff on the server