@wbrett30 wrote:
Hello,
I’m completely stuck trying to display images in an ios build of my app. It works for web deploy (ionic serve) using<img class="center-logo" src="assets/img/appicon.png"/>
.ionic CLI version 3.20.0
ionic angular dependency: 3.9.2I have tried EVERYTHING in this post:
https://stackoverflow.com/questions/42830752/ionic-2-images-not-displaying-on-device.The most common solution seems to be declare the image like this (which doesn’t work):
<img class="center-logo" src="assets/img/appicon.png"/>
Also, to look out for errors in case. I definately have correct case.
I can see my image is in the ios/www/assets/img directory.
I have tried every conceivable path to the this location:
<h3>assets/img/appicon.png</h3> <img class="center-logo" src="assets/img/appicon.png"/> <h3>/assets/img/appicon.png</h3> <img class="center-logo" src="/assets/img/appicon.png"/> <h3>./assets/img/appicon.png</h3> <img class="center-logo" src="./assets/img/appicon.png"/> <h3>www/assets/img/appicon.png</h3> <img class="center-logo" src="www/assets/img/appicon.png"/> <h3>./www/assets/img/appicon.png</h3> <img class="center-logo" src="./www/assets/img/appicon.png"/> <h3>/www/assets/img/appicon.png</h3> <img class="center-logo" src="/www/assets/img/appicon.png"/> <h3>../assets/img/appicon.png</h3> <img class="center-logo" src="../assets/img/appicon.png"/> <h3>../../assets/img/appicon.png</h3> <img class="center-logo" src="../../assets/img/appicon.png"/> <h3>../../../assets/img/appicon.png</h3> <img class="center-logo" src="../../../assets/img/appicon.png"/> <h3>src/assets/img/appicon.png</h3> <img class="center-logo" src="src/assets/img/appicon.png"/>
Thanks for any help, this is blocking release of our application, help much appreciated.
Brett
Posts: 1
Participants: 1