I use the Cordova and File plugin to display content in the resource directory on www.
On iOS, I get a file entry by passing the cordova.file.applicationDirectory file to window.resolveLocalFileSystemURL and everything works as expected.
var url = cordova.file.applicationDirectory + '/www/assets/';
window.resolveLocalFileSystemURL(
url,
onSuccess,
onFail
);
When I switch to the Windows application environment, cordova.file.applicationDirectory is undefined. I tried using Windows.ApplicationModel.Package.Current.InstalledLocation or Windows.Storage.ApplicationData.current.localFolder with no luck.
What is the correct way to resolve the local file system url for windows?