Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I write files in companion app

ANSWERED

Is there a possibility in companion app to write files ?
I need to create intermediate buffer before sending data to API.   Of course, I can use localStorage, but I need "append" behavior. Do not want to use memory while getting and setting values in localStorage.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Unfortunately not. It's only localStorage or settingsStorage on the phone side.

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

Unfortunately not. It's only localStorage or settingsStorage on the phone side.

Best Answer
0 Votes

Is it still not possible to write a file on companion side of app?

Best Answer
0 Votes

No. In addition to what Jon said, you can use fetch() or WebSocket to send data to a server, which could be an app running on the same device as the companion and which saves the data to a file.

Peter McLennan
Gondwana Software
Best Answer