photo does not appear in the application PhoneGap

  • 1
  • Problem
  • Updated 4 years ago
It does not appear in the photo PhoneGap application and everything is OK in a browser, why?
Browser:


App PhoneGap:

Photo of Дмитрий Владимирович Васильев

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
The path is wrong. On your device, there is no path "/www/image..."
You should use a relative url from the present html document's spot in the directory tree.
This is local path?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
It might be a local path on your local machine or your iCloud Drive, but it's not in your app.
You need to use a relative path (which doesn't start with a slash)!
src="img/gameSquare.png"
Worked!!! Thanks