GithubHelp home page GithubHelp logo

Comments (8)

EddyVerbruggen avatar EddyVerbruggen commented on June 15, 2024 1

Woohoo, thx for testing this!

from nativescript-app-sync.

EddyVerbruggen avatar EddyVerbruggen commented on June 15, 2024

Hmm, interesting one. Can you tell me how you wrote to the fs (a snippet would be helpful) and which platforms are affected?

from nativescript-app-sync.

shiv19 avatar shiv19 commented on June 15, 2024
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.

from nativescript-app-sync.

shiv19 avatar shiv19 commented on June 15, 2024

@EddyVerbruggen I believe this affects both Android and iOS since the files are in app folder.
But I haven't tested it on iOS

from nativescript-app-sync.

EddyVerbruggen avatar EddyVerbruggen commented on June 15, 2024

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.

  • iOS Simulator ✅
  • iOS Device ✅(so iOS seems fine)
  • Android Device ❌(I can confirm the issue)

from nativescript-app-sync.

EddyVerbruggen avatar EddyVerbruggen commented on June 15, 2024

Hey @shiv19, can you please give version 1.0.2 a try?

On Android (only) I used to rename the /app folder to /app_backup and then rename the folder with the pending update to /app. So that's why files saved to /app were lost. I guess if you save to different folders there wouldn't be an issue.

I've now updated the algorithm to instead copy the new files over the current /app folder, so anything already there won't be removed.

from nativescript-app-sync.

shiv19 avatar shiv19 commented on June 15, 2024

Thanks @EddyVerbruggen
I'll give it a try today :)

from nativescript-app-sync.

shiv19 avatar shiv19 commented on June 15, 2024

@EddyVerbruggen It worked! :D Thank you

from nativescript-app-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.