Skip to content
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
@sseiichi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions