-
-
Notifications
You must be signed in to change notification settings - Fork 24
Files written to the file-system are lost after update #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm, interesting one. Can you tell me how you wrote to the fs (a snippet would be helpful) and which platforms are affected? |
import { knownFolders } from 'tns-core-modules/file-system';
const documents = knownFolders.documents();
const jsonFile = documents.getFile('/app/something.json');
jsonFile.readText().then(function(content) {}); // for read
jsonFile.writeText(text).then(function() {}); // for write Something like this. And I realize that files are being written into app folder in this app. |
@EddyVerbruggen I believe this affects both Android and iOS since the files are in app folder. |
Thanks for the snippet. Looking at this today and reporting my findings here. Note that an iOS sim and device behave differently, so that's why I'll test both of those separately.
|
Hey @shiv19, can you please give version 1.0.2 a try? On Android (only) I used to rename the I've now updated the algorithm to instead copy the new files over the current |
Thanks @EddyVerbruggen |
@EddyVerbruggen It worked! :D Thank you |
Woohoo, thx for testing this! |
We noticed that after an AppSync update, the files that the app writes to the file system are lost.
However, things stored in App-Settings remain intact.
The text was updated successfully, but these errors were encountered: