Remote images not loading in mobile


#1

Does someone know why I can’t display external images (eg. from an Internet url) after build my Ionic3 APK?

Eg:

  1. ionic start testApp blank
  2. edit home.html
  3. write the follow code:
<ion-content padding>
  <img src="https://i.pinimg.com/originals/54/a9/6a/54a96aff03915a274f3c994588b128cd.jpg" />
</ion-content>
  1. ionic cordova build android --prod
  2. ./adb install -r app-debug.apk

After open the app into my real device, the image crashes, nothing is displayed. In my browser or Ionic DevApp both works fine.

Suggestions? I’m using Android 8.0.0.


#2

I ended up starting a new project and copying the src directory. The problem was solved mysteriously!