cordova-plugin-photo-library icon indicating copy to clipboard operation
cordova-plugin-photo-library copied to clipboard

Can't save image due to some authentication constraint

Open razam217 opened this issue 7 years ago • 3 comments

Hi, I'm using this plugin to download images and videos from server, where there are some authentication applied. Image download works fine from our web-application, because it uses session stored in cookies to download image, based on which authentication gets successful.

In mobile application, when I check, session is stored in cookies and can be used. But it seems, plugin doesn't pick session value from it. Can you please guide me how can I use it?

When I try any sample image from google, it saves the image nicely.

Apart from my issue, your plugin is really nice, I checked many other plugins, but none of them worked 100% in both Android and IOS.

Thanks,

razam217 avatar Jun 09 '17 07:06 razam217

Sorry for late answer, sure it seems like limitation. It seems that cordova-plugin-file-transfer resolve similar issue here. I'd like this plugin to integrate with cordova-plugin-file-transfer instead of re-implementing it. After all, all the difference is that in addition to download, the photo-library should add the downloaded file to device's library. I'll think about what can be done.

viskin avatar Jun 20 '17 15:06 viskin

Thanks @viskin ...

razam217 avatar Jun 21 '17 06:06 razam217

Hi @viskin , any plan to implement this feature in your plugin? Or do you think if there is any way to use cordova-file-transfer-plugin code with your plugin code?

razam217 avatar Aug 10 '17 06:08 razam217