So I am fairly new to mobile development, but I can’t seem to find out why when I run the emulators or run the app on my device it fails to load images. If I inspect it, I see the following message: Failed to load resource file:///img/PBOmed_logo.png. It works just fine using ionic serve but not on the devices or emulators. I have verified the file is getting copied to the platforms’ build directories. Am I missing some permission or something? I don’t understand why it loads the scripts just fine but not the images. I am trying to show the images using css like this:
Just in the css file ionic creates when you create a project from a template (I did the tabs template), css/style.css. The app accepts the styles just fine, but can’t find the images specified in the css for some reason.
Sorry, I’m somewhat of a noob to forums. What is a code pane? And when I remove the preceeding slash in the url it breaks the browser images too. Still doesn’t work on the devices.