when ever I run
ionic cordova run android
the following piece of code works and shows the image returned from the function pathForImage
<img [src]="pathForImage(lastImage)" style="width: 100%" [hidden]="curImage === null">
however if I run
ionic cordova emulate android --lc
the image is not displayed but console.log(lastImage)
prints the url of the image which is file:///data/data/io.ionic.starter/files/1526441731794.jpg
. Can someone explain to me why this is happening? can I move on and believe that this will work?