terikon / cordova-plugin-photo-library

Maintainer needed. Please contact if you're using this library in your project
MIT License
149 stars 299 forks source link

on iOS, cdvphotolibrary schema should work with WKWebView #41

Open viskin opened 7 years ago

viskin commented 7 years ago

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 commented 7 years ago

Some more resources: WKWebView and NSURLProtocol not working WKWebView does not fully support custom NSURLProtocol NSURLProtocol in WKWebView

arberkryeziu commented 7 years ago

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

viskin commented 7 years ago

I will try the new v3 version.

wowmama commented 7 years ago

Is there any solution for this issue?

AndreasGassmann commented 6 years ago

@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.

jaybloke commented 6 years ago

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

gnesher commented 6 years ago

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

jaybloke commented 6 years ago

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

gnesher commented 6 years ago

@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 ...

AndreasGassmann commented 6 years ago

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.

jaybloke commented 6 years ago

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.

AndreasGassmann commented 6 years ago

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 :)