You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :-)
The text was updated successfully, but these errors were encountered:
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 setthis.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 isundefined
(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 :-)
The text was updated successfully, but these errors were encountered: