[[email protected], Cordova 8.0.0]
So you have added an image (.jpg, .png) into a page on your new ionic app and testing in the browser all looks fine. But when you run the app on an ios device or simulator the image is broken and doesn't display. The main reason for this is a simple slash at the start of the image path.
The example below won't work:
Removing the slash will fix the issue:
This is due to a path issue with the root of your app. Making the path relative will stop any confusion.
Subscribe to Invisibleloop
Get the latest posts delivered right to your inbox