I am trying to backup app data in json file so that user can restore it later on. I can save and read file fine. However, when app is uninstalled, the backup file is also removed. Here is the code:
const file = fileSystemModule.knownFolders.documents().getFile('backup.json'); file.writeText(JSON.stringify(data));
How can I make it so that backup file can always be restored later by user if he installs app again.
Thanks for the help