Downloaded image is not displayed - ionic 3.8

If you are using wkwebview(which is now default for new apps)
then follow below steps,

  1. import { normalizeURL} from ‘ionic-angular’;

  2. store your image path in some new variable.
    var imagePath = this.file.dataDirectory + “test.png”;
    this.tempImagePath = normalizeURL(imagePath);

  3. then in your html file,
    use tempImagePath as image src.

3 Likes