Comments (8)
Woohoo, thx for testing this!
from nativescript-app-sync.
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.
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.
@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.
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.
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.
Thanks @EddyVerbruggen
I'll give it a try today :)
from nativescript-app-sync.
@EddyVerbruggen It worked! :D Thank you
from nativescript-app-sync.
Related Issues (20)
- Unable to release later updates HOT 1
- NativeScript 6.5 Crash [NativeScriptEmbedder.m] HOT 6
- Just an error when create new App .. but the staff is made
- [Update translate] Synchronize nativescript-app-sync with nativescript-localize HOT 3
- Metadata information from within the app question
- Objective-C class name "t" is already in use HOT 1
- [IOS] App crash : Could not find module './'. Computed path HOT 1
- AOT and snapshots not supported HOT 2
- [Nativescript-vue] TypeError: Right-hand side of 'instanceof' is not an object HOT 1
- Update error
- iOS didn't not update after restarting. HOT 3
- User has exceeded the 'max_user_connections' resource (current value: 15) HOT 7
- The project in the CWD is not a NativeScript project. HOT 4
- appsync register successfully ,issue in package.json file dependencies HOT 1
- Please upgrade this plugin for NS 7 HOT 12
- Register page not working HOT 4
- Compatible with MS App Center service?
- iOS not updated after AppSync HOT 7
- [Error] connect ETIMEDOUT 188.114.97.7:xxxx
- New release ETA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-app-sync.