You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
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);
}
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.
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
The text was updated successfully, but these errors were encountered: