-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4.0
-
Fix Version/s: None
-
Component/s: cordova-plugin-camera, cordova-plugin-media-capture, cordova-windows
-
Labels:None
After installing my application, the camera function stopped working.
It turns out the issue was "Illegal Access" when trying to save the picture to the application's root folder.
I was able to fix the problem by writing to the local storage folder instead:
Original Code:
Windows.Storage.StorageFolder.getFolderFromPathAsync(packageId.path).done(function (storageFolder) {
/* Some code here */
});
Correction:
var storageFolder = Windows.Storage.ApplicationData.current.localFolder;
/* Same code here */
- is related to
-
CB-3395 Don't write files to Windows.ApplicationModel.package.current.InstalledLocation
-
- Closed
-