Skip to content
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
sseiichi opened this issue Oct 2, 2017 · 0 comments
Open

Comments

@sseiichi
Copy link

sseiichi commented Oct 2, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant