Hello,
make a console log what you want to apply to your src. Maybe a typo like in defeaultLogoPic.png.
Otherwise that ionic serve works and not on device depends to that, that your path points to src folder, which is not avialable on device.
Post console.logs output for further investigation.
While @robinyo’s method of building up the image src property using {{}} interpolation will work fine for ordinary URLs, it won’t for data URLs. See this discussion for why and what to do instead.
As anna_libt mentioned, would it have to do with my GIFs/images being stored in the src/assets/img folder? It’s able to generate images just fine though, it just doesn’t display the GIFS - which is what’s puzzling me
I think the problem regarding it not working on mobile - could be caused by the naming convention you are using - i.e .this.src=‘assets/img/defeaultLogoPic.png’" is a mixture of lower and upper case characters. A pc is not case sensitive but on some mobiles it is - so I only use lower case for file names.
I moved all my gifs inside the www/img folder ( I created the img folder) and that seemed to do the trick. Anybody have an explanation why this was the case? I was previously storing them in the src/assets/img
that surely should not officially count as solution as all the files in www folder should be generated using scripts (and copied from other places). but if it works for you, why complain?