I am having problem with the download image on my app. How to download a certain image allowable in andriod, ios and windows phone?
This is the following code I have:
<div> <a href="https:sample.com/uploads/04-19-2016/1.jpg"> <span class="attachment-wrap"><i class="fa fa-paperclip" aria-hidden="true"></i> ..1.jpg</span> </a> </div> <div> <a href="https:sample.com/uploads/04-19-2016/2.jpg"> <span class="attachment-wrap"><i class="fa fa-paperclip" aria-hidden="true"></i> ..2.jpg</span> </a> </div> <div> <a href="https:sample.com/uploads/04-19-2016/3.jpg"> <span class="attachment-wrap"><i class="fa fa-paperclip" aria-hidden="true"></i> ..3</span> </a> </div>
If the link was clicked the image should be download. I have tried the HTML <a> download Attribute but it is not allowed on ios.
I also tried reading this: cordova-plugin-file-transfer - Apache Cordova but I didn't understand how it works(thinking not applicable on my situation)?
Any help?
You were on the right track. cordova-plugin-file-transfer - Apache Cordova is what you should be looking at.
If you want to *view* the image in the app (like in a photos app etc), then you'll need something else.
Something like cordova-open or cordova-plugin-file-opener2 ?
I would search for "open" or "image" at Plugin Search - Apache Cordova