I made my app in XDK, but until now I was using it purely online, in a server. Now I want to 'convert' it into an android app. The main problem i'm having is that in some areas of this app, I need to import an image from an URL, like so:
<img ng-src="https://i.ytimg.com/vi/3YJpUROvQAk/maxresdefault.jpg">
But in my android device, all images do not load.
Is there any way to load an image from an URL into a img
tag with XDK Android?
This is generally not a good idea, because it means you are dependent on the presence of a good and working Internet connection when your app runs. This cannot be guaranteed:
If you want to do what you are attempting to do you'll need to make sure your whitelist is configured to include access to the locations from which you are attempting to load the image. This is probably why it is failing.