This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
cordova-plugin-file doesn't work with ManifoldCordova on Windows 10 #104
Open
Description
cordova-plugin-file doesn't work with cordova-plugin-hostedwebapp on Windows 10.
The following code calls error callback, "onErrorCreateFile" with error code 5.
When I uninstalled cordova-plugin-hostedwebapp, the code successfully creates "log.txt" file.
window.resolveLocalFileSystemURL(cordova.file.dataDirectory, function (dir) {
dir.getFile("log.txt", { create: true }, function (file) {
navigator.notification.alert("got the file: " + file);
}, onErrorCreateFile);
}, onErrorResolveFs);
function onErrorCreateFile(error) {
navigator.notification.alert("onErrorCreateFile: " + error.code);
}
function onErrorResolveFs(error) {
navigator.notification.alert("onErrorResolveFs: " + error.code);
}
The same code successfully runs on Android.
My environment:
Cordova 6.1.1
Installed platforms:
windows 4.3.2
Plugins:
cordova-plugin-dialogs 1.3.3 "Notification"
cordova-plugin-file 4.1.1 "File"
cordova-plugin-hostedwebapp 0.3.1 "HostedWebApp"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-whitelist 1.3.2 "Whitelist"
Windows 10 & Visual Studio 2015
Metadata
Assignees
Labels
No labels
Activity