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

convertFileSrc method missing in some WebView #248

Open
Enrico204 opened this issue Apr 16, 2019 · 0 comments
Open

convertFileSrc method missing in some WebView #248

Enrico204 opened this issue Apr 16, 2019 · 0 comments

Comments

@Enrico204
Copy link

As mentioned here, convertFileSrc is missing in some WebView version (such as in Ionic 3 with WebView 1.2.1). The current workaround (until an upgrade is done) is to set this.imageLoaderConfig.setImageReturnType('base64'); so the image is serialized in Base64, but this is not very efficient.

I suggest to create a local version of convertFileSrc method (see here for implementation) to use if the original one is missing, or if the global WebView object is undefined (this is my case).

I can't create a PR right now (too busy), but I'll be happy to contribute if no one will work on that :-)

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

1 participant