私のコードはこの方法です。これらのコードはAndroidで動作します。しかし、それはイオスでは動作しません。パスが間違っているためです。 パスとは何ですか? filenameは、cordova.file.externalApplicationStorageDirectory
を使用しているコードバーファイル転送パス?
onFileSaving: function (fileWillCreate) {
window.resolveLocalFileSystemURL(cordova.file.externalApplicationStorageDirectory, function (dirEntry) {
dirEntry.getFile(fileWillCreate.fileName + '.xlsx', { create: true, exclusive: false },
function (fileEntry) {
fileEntry.createWriter(function (fileWriter) {
fileWriter.onwriteend = function() {
console.log("Dosya yazıldı:" + fileEntry.fullPath);
alert('Dosyanız Başarıyla Kaydedildi'+fileEntry.fullPath);
};
fileWriter.onerror = function (e) {
console.log("Dosya yazılırken hata oluştu: " + e.toString());
};
fileWriter.write(fileWillCreate.data);
})
})
})
}