Phonegap iOS: Download image to Photo Library

我怕爱的太早我们不能终老 提交于 2019-12-11 03:56:53

问题


Is it possible to download a file (image) and save it in the Photo Library?

I am aware of this download method, but it only allows to download to a location that I specify.

On iOS I was unable to get the path to the Photo Library (and I know it doesn't just store it there, but also adds it to a DB)

Does phonegap provide this ability in some way?
Do I need to write a dedicated plugin for this?

Thanks,
Nadav


回答1:


Ehh... I hate answering my own questions

I found this was impossible without a Phonegap plugin, and couldn't find one that does that, so I wrote one.
Currently only iOS and Android are supported. https://github.com/grnadav/SaveToPhotoAlbumPhonegapPlugin

Feel free to expand it's functionality and pull-request :)



来源:https://stackoverflow.com/questions/14982028/phonegap-ios-download-image-to-photo-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!