Images not showing in PhoneGap Build application
I was able to fix it by just throwing the images into the root folder and linking to that. May not be the best solution but it works! Hope this helps any viewers. PhoneGap Build apps require the images to be in the root folder.
Phonegap images not showing
After compilation the build.phonegap.com put your source files into "www" directory.
You can access your local image file using the following path "/android_asset/www/"
<image src='/android_asset/www/tire_selected.png' responsive />
If your image is placed in a subdirectory inside the root direcctory then you can use the following:
<image src='/android_asset/www/sub-direcctory/tire_selected.png' responsive />
Note: replace the "sub-direcctory" with your own if there is any in which the local image file is contained.
remote image not loading in cordova
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src * 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'; media-src *; img-src * filesystem: data:">
It fixed the issue. Just added in the head section.
Phonegap - displaying Image from external url
Updating the Phonegap client App on my phone fixed it. But first make sure to change the Content-security-policy
in the meta
tag as pointed by @TolgaOzses above.
<meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *; img-src * " />
Related Topics
How to Make Vertically Rotated Links in HTML
How to Center Text Inputs Using Materialize CSS
Static Webpage on Nginx Docker Container Missing CSS
Why Are These Two Inline-Blocks Not Aligned
Wrapper Div Height Is 0 with Floated Elements Inside
How to Remove HTML5 Video Player Navigation Button
CSS How to Properly Use Ems Instead of Pixels
CSS - Placement of a Div in The Lower Left-Hand Corner
Text Size Is Different in Ie and Firefox
CSS Specificity - External Style Sheet Vs Internal Style Sheet Using Just Classes
CSS Font Twitter Like Close Button, What Did I Missing
CSS Layout Help - Stretch Div to Bottom of Page
How to Have 2 Floating Divs Have The Same Height
How to Stack Two Same-Sized Canvas on Top of Each Other
How Do Make Ionic 4 Ion-Col The Same Height
Div Background Color Not Showing with Body Color
Putting Buttons and Links Over Particles.Js Script (Z-Index)