06-06-2022 11:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-06-2022 11:47
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I made an app which writes files and sends them to the server. Since I noticed that sometimes, files don't get sent, I decided to have them backed up by saving them to the watch's memory.
I'm now trying to make a different app that reads the saved file but it's not working then I noticed the description on Filesystem SDK.
" File system operations are relative to your app's private data directory, /private/data/. For example the path file.text refers to /private/data/file.text. This private directory is also where files transferred using File Transfer are held once received by your application. This is the only location your app can write to; all locations outside of /private/data/ are read-only."
The way I see it, only the creator app of the file can read it too and a different app will have it's own /private/data folder.
Is there a way to workaround it? Or am I missing something?
The only workaround I have so far is to add another function to my app that will read and send all data to the server at once.
Thanks in advance!

06-06-2022 21:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-06-2022 21:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @ac_devel - have a look at app cluster storage it may be useful.
Author | ch, passion for improvement.

