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

on iOS, cdvphotolibrary schema should work with WKWebView

Open viskin opened this issue 7 years ago • 12 comments

WKWebView still does not provide support for custom schemas. See this issue. This seems to be completely in hands of apache/ionic. Nevertheless, if such support will appear, it will significantly improve performance of cordova-plugin-photo-library on iOS.

viskin avatar Feb 27 '17 10:02 viskin

Some news related to this issue https://forum.ionicframework.com/t/wkwebview-v3-0-0/82814

arberkryeziu avatar Mar 25 '17 13:03 arberkryeziu

I will try the new v3 version.

viskin avatar Mar 28 '17 08:03 viskin

Is there any solution for this issue?

wowmama avatar Jul 28 '17 02:07 wowmama

@viskin Did you have time to look into this? I am about to upgrade my app to WKWebView and will probably run into this issue.

AndreasGassmann avatar Nov 29 '17 16:11 AndreasGassmann

You will definitely run into this problem @AndreasGassmann - I had to revert to the older UIWebView in order to get this plugin to work.

jaybloke avatar Dec 05 '17 02:12 jaybloke

So if Ionic now bundles WKWebView by default, does that mean Ionic no longer support native interaction with the camera / photo library? That sounds a bit odd

gnesher avatar Dec 05 '17 08:12 gnesher

It would appear so @gnesher - raised an issue here - https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/54

jaybloke avatar Dec 05 '17 09:12 jaybloke

@jaybloke thanks, I've also posted a question on their forum / stack overflow. There does seem to be a work around (https://medium.com/collaborne-engineering/my-cordova-nightmares-accessing-photos-from-the-phones-gallery-7528a0860555) which involves setting up a web server but I'm a wee bit cautious with that ...

gnesher avatar Dec 05 '17 09:12 gnesher

Has anyone tried this plugin? https://github.com/domax/cordova-plugin-photos I didn't have time to really look into it, but it seems that he is returning the image data and then displaying the blob directly. That should work, but I'm a bit concerned about performance.

AndreasGassmann avatar Dec 05 '17 11:12 AndreasGassmann

I share your concern @AndreasGassman - I'm sure this would be find for a handful of images, but if you need to render hundreds of images as blobs, I'm pretty sure performance is going to be terrible.

jaybloke avatar Jan 19 '18 02:01 jaybloke

Has anyone made any progress here? With the Ionic v4 beta released I guess a lot of people are getting ready to upgrade, which will probably also include the WKWebView update. So we should try to find a solution soon :)

AndreasGassmann avatar Jul 26 '18 07:07 AndreasGassmann