"Ionic run" doesn't work physical device


#1

Hi,
I’ve this curious problem and I was tring to figure out if it was a bug or if it is - more likely - just something I’m doing wrong.
I’ve add the android platform to my app and it works just fine in the browser but when I deploy it to the physical device (i.e. my smartphone) it doesn’t work. It simply can’t reach the server, which is odd since I have set the request properly.
I’m having this kind of problem with android platform from 3.6.x to 4.0.0 and I suspect it is a gradle bug, but I haven’t yet an answer.
Does anyone have the same issue?


#2

I’ve managed to solve this.
With cordova-android 4.0.0 you need to add cordova-plugin-whitelist as reported [here][1]

I hope this could be helpful
[1]: https://cordova.apache.org/announcements/2015/04/15/cordova-android-4.0.0.html