Hello David!
Do you have any experience with the new WKWebview and the camera cordova plugin not showing caputured images?
because since I use your new WKWebview I do get an Error when I want to display the taken, or from photolibrary, image with the camera.
Not allowed to load resource: file://path_to_the_file
Is there any config.xml prefernce setting I have to set or something else?
The problem is only on IOS
best regards
mario
Hello Mario,
Yes; there is a couple of options. The first one can be to retrieve the photo using the destination type "DATA_URL", that is:
If we want to use destination type "FILE_URI", in other words, if what we get is a path starting by "file://", then we must use certain "magic method" exposed by Cordova iOS for this cases: window.WkWebView.convertFilePath, which as is referred here at the end of the article.
I am not sure... probably I add this "magic method" to the Cordova File plugin, to we can use it from certain method of this plugin in AB.
Hello Mario,
Finally I decide to add the referred "magic method" into the Cordova File plugin. Additionally I also add the method into the Cordova camera plugin, so we get it available in both plugins, which is good in case that we need only one of them.
You can update your AB copy to this new release.
Thank you very much David!
You are awesome!
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.