Download file on iOS device with Apache Cordova
In this tutorial we are going to download a image of internet to a iOS device (Iphone 5s), then show the image downloaded in a img tag of html.
Create the application
Install the Plugin : Cordova Plugin File Transfer
We will use the plugin Cordova Plugin File Transfer, you can read more about this plugin in : Cordova Plugin File Transfer
Add Javascript code
We are going to download the logo of Github, from Here, On index.js file, we need add the next code:
In the index.html file you need add a tag img, Here the downloaded image will be displayed
Ok, this simple code downloads an image and shows it in an img tag on the index.html page.