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:
  • 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


Helped me well.

I’ve found

XMLHttpRequest cannot load No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access. 

It is CORS again. I am resolving it by using own DNS server -