PAVANDEVA opened a new issue, #548:
URL: https://github.com/apache/cordova-plugin-file/issues/548
i want to persist data even after deleting the app . i could able to achieve
it in android but in ios, if the application is deleted and relaunched i am not
able the fetch data.
in android i am using the below method
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fs) {
fs.root.getDirectory(
"******",
{ create: true },
fetchExistingFile
);
});
const fetchExistingFile = (fileEntry) => {
fileEntry.getFile("#####.txt", { create: false }, readFile);
};
const readFile = (fileEntry) => {
fileEntry.file((file) => {
var reader = new FileReader();
reader.onloadend = function() {
sendData(reader.result)
};
reader.readAsText(file);
});
};
Note: above code working in android.
is there any i could achieve this in ios .
your help is most appreciated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]