SAFileTransfer.setFileReceiveListener({
onreceive : function(id, fileName) {
try {
SAFileTransfer.receiveFile(id, "documents/" + fileName);
} catch(e) {
showNote("unknown_error");
}
},
onprogress : function(id, value) {},
oncomplete : function(id, localPath) {showNote("ok");},
onerror : onerror
});
I am trying to receive a file on smartwatch, but I get the error “FILE_IO”…
I already requested permission to access the externalstorage…
Does anyone have a solution? thx