Closed wingo7 closed 3 years ago
I am seeing the same behaviour as well.
I managed to work-around this by editing the tempFilePath
function as below:
https://github.com/apache/cordova-plugin-camera/blob/db2ffedecc23993e2393a6226a63bd05998f0f01/src/ios/CDVCamera.m#L397
NSString* docsPath = [NSTemporaryDirectory()stringByStandardizingPath];
NSString* docsPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/NoCloud"];
Note: this may mean you are storing files on the device permanently depending on how you clean up the files, but this is fine for my use case.
@wingo7 is this issue still occuring?
The plugin doesn't aim to store the image or video permanently on the device.
The plugin want's to pass the selected image (or video) to the html side. You should upload it to a server f.e.. But it does not aim to keep it available permanently.
Closing ticket due to lack of response, issue is probably solved with most recent Cordova tooling.
Bug Report
The plugin doesn't show image or video after restarting the app with WKWebView
Problem
After restarting the app video file or image file is not available anymore with WKWebView. After choosing an image or video from the gallery it works fine, but if I restart the app image or video is not available anymore by the path received before. This issue reminds me #506 issue, with the only the difference WKWebView instead of UIWebView.
What is expected to happen?
I expect to see an image or video after restarting the app as it was with UIWebView
What does actually happen?
I updated my Cordova ios version to 5.1.1 to use WKWebView as described here: https://cordova.apache.org/howto/2020/03/18/wkwebviewonly.html I installed the latest version of this plugin, that doesn't solve the problem
Information
cli packages: (/usr/local/lib/node_modules)
global packages:
local packages:
System:
Command or Code
Environment, Platform, Device
ios 14.1, cordova-ios 5.1.1
Checklist