Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get WKWebview working with native Photo Library plugin #54

Closed
jaybloke opened this issue Dec 5, 2017 · 3 comments
Closed

Comments

@jaybloke
Copy link

jaybloke commented Dec 5, 2017

When using WKWebview, custom schemes like cdvphotolibrary:// do not appear to work (even with dom sanitiser in place).

The cdvphotolibrary:// scheme is employed to show thumbnails etc when filtering photos from the cordova photo library plugin.

Had to revert back to UIWebView in order to get the photo library plugin to work.

Issue also mentioned here: terikon/cordova-plugin-photo-library#41

@Sh1d0w
Copy link

Sh1d0w commented Feb 9, 2018

@manucorporat This is a serious issue that stops a lot of developers to use the plugin. Any thoughts on this so far?

@mhartington
Copy link

This make sense, since the wkwebview plugin uses a file server to serve the app contents.

http://ionicframework.com/docs/wkwebview/

We mention this in the WKWebview docs, but you cannot use any file protocol when referencing native files. This also includes the cdvfile:// protocol. Instead, get the full file path, and use the normalizeUrl function.

https://ionicframework.com/docs/wkwebview/#rewriting-file

@v-ken
Copy link

v-ken commented Jul 19, 2018

@mhartington
When using FILE_URI destination type, the EXIF data seems to be missing. It is however available when you use NATIVE_URI type, but this results in a cdvfile:// format which doesn't work with WKWebView. Is there anyway to obtain a file type on the local server AND all EXIF data related to a photo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants