-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi,
I tried to use your plugin in my app and I get this error:
W/CordovaPlugin( 4422): Attempted to send a second callback for ID: BinaryFileWriter131367594
W/CordovaPlugin( 4422): Result was: "Error"
W/CordovaPlugin( 4422): Attempted to send a second callback for ID: BinaryFileWriter131367594
W/CordovaPlugin( 4422): Result was: "Invalid action"
The code I run is:
'use strict';
window.requestFileSystem(
window.TEMPORARY, 1024, function (fs) {
fs.root.getFile(
'ff.txt',
{create: true, exclusive: false},
function (fe) {
fe.createWriter(function (fileWriter) {
fileWriter.onerror = function (e) {
console.error(e);
};
fileWriter.onwriteend = function (e) {
console.error('e.loaded', e.loaded);
fe.file(function (file) {
console.error('file size is', file.size);
});
};
fileWriter.seek(0);
fileWriter.writeBinaryArray([244, 244, 244]);
});
},
function (e) {console.error(e)}
);
},
function (e) {console.error(e)}
);btw, fileWriter.onerror is not providing any info.
Metadata
Metadata
Assignees
Labels
No labels