No internet access on Nexus 5 (Android 5.1)

I just simply try the starter tabs app for prove of concept.

$ ionic start myApp tabs

I found that everything works on browsers and iOS devices. However, when i used my Nexus 5 (Android 5.1) to test, all images in Chats tab cannot be loaded.

I also tried to use a simple img tag to load an absolvable image path. It doesn’t work either.

This problem was solved by adding the cordova whitelist plug.

ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git

from http://stackoverflow.com/questions/29437035/whitelist-not-working-ionic-with-crosswalk