HTTP Promises are not resolved on the device

Hello. I started to work/debug with device. In browser it works well. I’ve notified. The HTTP promises are not resolved on the real device.

ionic run -c -l

It seems I missed something.

Thank you.

You can always enable remote debugging to see what is being executed on the device.
How to setup remote debugging:

  1. Connect your device using USB and:
  • If you are using Android device, than using Chrome you can inspect devices with:
    chrome://inspect/#devices
  • If you are using iOS device, first enable Safari Web Inspector (in Settings->Safari->Advanced. Then, using desktop Safari (in advanced preferences enable develop menu), from the Develop menu you can connect to device.
  1. Check the console for errors or put breakpoints on source code to see the problem.

Supply some code how you use promises

chrome://inspect/#devices

Helped me well.

I’ve found

XMLHttpRequest cannot load http://192.168.1.180:5000/budget/rest/register_instance. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.1.180:8100' is therefore not allowed access. 

It is CORS again. I am resolving it by using own DNS server - http://blog.ionic.io/handling-cors-issues-in-ionic/